<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Impact Webview</title>

    <!-- META -->
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="format-detection" content="telephone=no">

    <!-- JS -->
    <script type="text/javascript">
      if(!window.applifierimpact || !window.unityads) {
        window.applifierimpact = window.unityads = new function() {
          this.cachedCalls = [];
          this.init = function(data) {
            this.cachedCalls.push(['init', data]);
            return "cached";
          };
          this.setView = function(view, data) {
            this.cachedCalls.push(['setView', view, data]);
            return "cached";
          };
          this.handleNativeEvent = function(type, data) {
            this.cachedCalls.push(['handleNativeEvent', type, data]);
            return "cached";
          };
        };
      }
    </script>
    <style type="text/css">html{width:100%;height:100%}
body.iphone,body.ipad,body.android{width:100%;height:100%;margin:0;padding:0;font-family:Helvetica,sans-serif;color:#000;background-color:#000;-webkit-text-size-adjust:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-webkit-user-drag:none;font-weight:lighter}
body.iphone .page-container,body.ipad .page-container,body.android .page-container{width:100%;height:100%;overflow:hidden;position:absolute;top:0;left:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(100%,#fff),color-stop(0%,#bfbfbf));background:-webkit-linear-gradient(top,#fff,#bfbfbf)}
body.iphone .none-screen,body.ipad .none-screen,body.android .none-screen{display:none}
body.iphone .campaigns-container,body.ipad .campaigns-container,body.android .campaigns-container{position:absolute;top:0;bottom:0;width:100%;margin:auto}
body.iphone .header-container,body.ipad .header-container,body.android .header-container{width:100%;overflow:hidden;}
body.iphone .header-container .item-container,body.ipad .header-container .item-container,body.android .header-container .item-container{width:100%;opacity:0;float:left;}
body.iphone .header-container .item-container .item-image,body.ipad .header-container .item-container .item-image,body.android .header-container .item-container .item-image{float:left}
body.iphone .header-container .item-container .item-text-small,body.ipad .header-container .item-container .item-text-small,body.android .header-container .item-container .item-text-small{color:#007aff}
body.iphone .video-container,body.ipad .video-container,body.android .video-container{overflow:hidden;}
body.iphone .video-container #scroller-container,body.ipad .video-container #scroller-container,body.android .video-container #scroller-container{position:relative;z-index:1;overflow:visible !important;margin:0 auto;}
body.iphone .video-container #scroller-container #scroller,body.ipad .video-container #scroller-container #scroller,body.android .video-container #scroller-container #scroller{float:left;}
body.iphone .video-container #scroller-container #scroller ul,body.ipad .video-container #scroller-container #scroller ul,body.android .video-container #scroller-container #scroller ul{list-style:none;}
body.iphone .video-container #scroller-container #scroller ul li,body.ipad .video-container #scroller-container #scroller ul li,body.android .video-container #scroller-container #scroller ul li{box-sizing:border-box;display:block;float:left;background-repeat:no-repeat;background-position:top}
body.iphone .btn-play-bg,body.ipad .btn-play-bg,body.android .btn-play-bg{display:block;position:relative}
body.iphone .btn-play,body.ipad .btn-play,body.android .btn-play{display:block;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(0,0,0,0.25)),color-stop(100%,#000));background:-webkit-linear-gradient(top,rgba(0,0,0,0.25),#000);text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;margin:auto}
body.iphone .btn-play span,body.ipad .btn-play span,body.android .btn-play span{color:#fff}
body.iphone #navigation-container,body.ipad #navigation-container,body.android #navigation-container{text-align:center;}
body.iphone #navigation-container #indicator,body.ipad #navigation-container #indicator,body.android #navigation-container #indicator{display:inline-block;list-style:none;}
body.iphone #navigation-container #indicator li,body.ipad #navigation-container #indicator li,body.android #navigation-container #indicator li{float:left;list-style:none;background-color:rgba(0,0,0,0.4)}
body.iphone #navigation-container #indicator li.active,body.ipad #navigation-container #indicator li.active,body.android #navigation-container #indicator li.active{background-color:#007aff}
body.iphone #game-info,body.ipad #game-info,body.android #game-info{display:block;list-style:none;}
body.iphone #game-info li,body.ipad #game-info li,body.android #game-info li{text-align:center;display:none;}
body.iphone #game-info li .description,body.ipad #game-info li .description,body.android #game-info li .description{color:#007aff}
body.iphone #game-info li.active,body.ipad #game-info li.active,body.android #game-info li.active{display:block}
body.iphone .btn-watch-now,body.ipad .btn-watch-now,body.android .btn-watch-now{color:#fff;display:block;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4aaef0),color-stop(100%,#016add));background:-webkit-linear-gradient(top,#4aaef0,#016add)}
body.iphone .btn-watch-now.disabled,body.ipad .btn-watch-now.disabled,body.android .btn-watch-now.disabled{-webkit-box-shadow:none;opacity:.25}
body.iphone .btn-watch-now:active,body.ipad .btn-watch-now:active,body.android .btn-watch-now:active{opacity:.5}
body.iphone .campaign-container,body.ipad .campaign-container,body.android .campaign-container{width:100%;height:100%}
body.iphone .btn-close-region,body.ipad .btn-close-region,body.android .btn-close-region{position:absolute;z-index:1}
body.iphone .btn-watch-again-region,body.ipad .btn-watch-again-region,body.android .btn-watch-again-region{position:absolute;z-index:1}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again,body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close{z-index:1;position:absolute;background-color:rgba(255,255,255,0.5);color:#007aff;text-align:center}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again{-webkit-transform:rotate(90deg)}
body.iphone .game-background,body.ipad .game-background,body.android .game-background{width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#000;position:absolute;top:0;bottom:47%}
body.iphone .end-screen-info-background,body.ipad .end-screen-info-background,body.android .end-screen-info-background{position:absolute;bottom:0;width:100%;height:47%;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(100%,#fff),color-stop(0%,#bfbfbf));background:-webkit-linear-gradient(top,#fff,#bfbfbf)}
body.iphone .name-container,body.ipad .name-container,body.android .name-container{color:#1f1e1e}
body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{float:left;background-color:#fff;background-size:cover}
body.iphone .store-container,body.ipad .store-container,body.android .store-container{float:left}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{color:#fff;display:inline-block;position:relative}
body.iphone .game-rating-mask,body.ipad .game-rating-mask,body.android .game-rating-mask{color:#ff8e00;position:absolute;left:0;width:0%;height:100%;overflow:hidden;font-size:inherit;}
body.iphone .game-rating-mask.game-rating-mask-alt,body.ipad .game-rating-mask.game-rating-mask-alt,body.android .game-rating-mask.game-rating-mask-alt{color:#f06}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{color:#7c7c7c}
body.iphone .game-rating-br,body.ipad .game-rating-br,body.android .game-rating-br{display:none}
body.iphone .game-rating-postfix,body.ipad .game-rating-postfix,body.android .game-rating-postfix{display:none}
body.iphone .download-container,body.ipad .download-container,body.android .download-container{text-align:center;clear:both}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{color:#fff;display:block;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4aaef0),color-stop(100%,#016add));background:-webkit-linear-gradient(top,#4aaef0,#016add);text-shadow:0 -1px #217fea;left:0;right:0;}
body.iphone .btn-download .icon-download,body.ipad .btn-download .icon-download,body.android .btn-download .icon-download{-webkit-transform:rotate(90deg);display:block;float:left;background-color:rgba(0,0,0,0.15)}
body.iphone .download-text-alt,body.ipad .download-text-alt,body.android .download-text-alt{display:none}
body.iphone .download-text-fresh,body.ipad .download-text-fresh,body.android .download-text-fresh{display:none}
body.iphone .download-text-fresh-alt2,body.ipad .download-text-fresh-alt2,body.android .download-text-fresh-alt2{display:none}
body.iphone .download-text-fresh-alt3,body.ipad .download-text-fresh-alt3,body.android .download-text-fresh-alt3{display:none}
body.iphone .download-explanation,body.ipad .download-explanation,body.android .download-explanation{display:none}
body.iphone .everyplay-gameads-logo,body.ipad .everyplay-gameads-logo,body.android .everyplay-gameads-logo{background-image:url("img/unityads.png");background-position:center;background-size:cover;margin:auto;position:absolute;left:0;right:0}
body.iphone .privacy-button,body.ipad .privacy-button,body.android .privacy-button{position:absolute;bottom:10px;left:15px;color:#ddd;display:block;text-decoration:none;font-size:22px}
body.iphone .download-explanation-fresh,body.ipad .download-explanation-fresh,body.android .download-explanation-fresh{display:none}
body.iphone .store-badge-container,body.ipad .store-badge-container,body.android .store-badge-container{display:none}
body.iphone.landscape .game-background,body.ipad.landscape .game-background,body.android.landscape .game-background{width:53%;bottom:0}
body.iphone.landscape .end-screen-info-background,body.ipad.landscape .end-screen-info-background,body.android.landscape .end-screen-info-background{width:47%;height:100%;right:0}
body.iphone .popup-background,body.ipad .popup-background,body.android .popup-background{visibility:hidden;position:absolute;top:0;left:0;background-color:rgba(0,0,0,0.75);width:100%;height:100%;z-index:100;text-align:center;background-size:cover}
body.iphone .spinner-container,body.ipad .spinner-container,body.android .spinner-container{display:inline-block;text-align:center;background-color:#000;color:#fff}
body.iphone .spinner-text,body.ipad .spinner-text,body.android .spinner-text{float:left}
body.iphone .spinner-animation,body.ipad .spinner-animation,body.android .spinner-animation{width:24px;height:24px;float:left;margin-right:15px;border:4px solid #fff;border-left-color:transparent;border-right-color:transparent;border-radius:200px;-webkit-animation:spinner 1s linear infinite}
@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0)}
100%{-webkit-transform:rotate(360deg)}
}body.iphone .error-container,body.ipad .error-container,body.android .error-container,body.iphone .privacy-container,body.ipad .privacy-container,body.android .privacy-container{display:inline-block;text-align:center;background-color:#000;color:#fff;}
body.iphone .error-container .privacy-simple-text,body.ipad .error-container .privacy-simple-text,body.android .error-container .privacy-simple-text,body.iphone .privacy-container .privacy-simple-text,body.ipad .privacy-container .privacy-simple-text,body.android .privacy-container .privacy-simple-text{display:none}
body.iphone .error-container.simple .privacy-text,body.ipad .error-container.simple .privacy-text,body.android .error-container.simple .privacy-text,body.iphone .privacy-container.simple .privacy-text,body.ipad .privacy-container.simple .privacy-text,body.android .privacy-container.simple .privacy-text{display:none}
body.iphone .error-container.simple .privacy-simple-text,body.ipad .error-container.simple .privacy-simple-text,body.android .error-container.simple .privacy-simple-text,body.iphone .privacy-container.simple .privacy-simple-text,body.ipad .privacy-container.simple .privacy-simple-text,body.android .privacy-container.simple .privacy-simple-text{display:block}
body.iphone .btn-ok,body.ipad .btn-ok,body.android .btn-ok,body.iphone .btn-cancel,body.ipad .btn-cancel,body.android .btn-cancel{display:block;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4aaef0),color-stop(100%,#016add));background:-webkit-linear-gradient(top,#4aaef0,#016add)}
body.iphone .privacy-button,body.ipad .privacy-button{display:none}
body.iphone .campaigns-container,body.ipad .campaigns-container,body.android .campaigns-container{height:260px}
body.iphone .start-screen a.btn-close,body.ipad .start-screen a.btn-close,body.android .start-screen a.btn-close{margin-top:10px}
body.iphone .header-container,body.ipad .header-container,body.android .header-container{margin-top:10px;}
body.iphone .header-container .item-container,body.ipad .header-container .item-container,body.android .header-container .item-container{margin:10px;}
body.iphone .header-container .item-container .item-image,body.ipad .header-container .item-container .item-image,body.android .header-container .item-container .item-image{width:50px;height:50px;background-size:50px;border-radius:10pt;-webkit-box-shadow:0 3px 3px rgba(0,0,0,0.2);margin:0 15px 0 0}
body.iphone .header-container .item-container .item-text-small,body.ipad .header-container .item-container .item-text-small,body.android .header-container .item-container .item-text-small{padding:8px 0 0 0;font-size:12px}
body.iphone .header-container .item-container .item-text-large,body.ipad .header-container .item-container .item-text-large,body.android .header-container .item-container .item-text-large{font-size:20px}
body.iphone .video-container #scroller-container,body.ipad .video-container #scroller-container,body.android .video-container #scroller-container{padding:0;width:280px;height:167px;}
body.iphone .video-container #scroller-container #scroller,body.ipad .video-container #scroller-container #scroller,body.android .video-container #scroller-container #scroller{width:810px;height:100%;padding:0;}
body.iphone .video-container #scroller-container #scroller ul,body.ipad .video-container #scroller-container #scroller ul,body.android .video-container #scroller-container #scroller ul{margin:0;padding:0;}
body.iphone .video-container #scroller-container #scroller ul li,body.ipad .video-container #scroller-container #scroller ul li,body.android .video-container #scroller-container #scroller ul li{margin:10px 0;width:280px;height:146px;background-size:260px 146px}
body.iphone #navigation-container,body.ipad #navigation-container,body.android #navigation-container{padding-top:12px;}
body.iphone #navigation-container #indicator,body.ipad #navigation-container #indicator,body.android #navigation-container #indicator{margin:4px auto;padding:0;}
body.iphone #navigation-container #indicator li,body.ipad #navigation-container #indicator li,body.android #navigation-container #indicator li{padding:0;margin:0 4px 0 0;text-indent:-9999em;width:8px;height:8px;border-radius:5px;-webkit-box-shadow:inset 0 2px 2px rgba(0,0,0,0.2),0 1px 0 rgba(255,255,255,0.1)}
body.iphone #navigation-container #indicator li.active,body.ipad #navigation-container #indicator li.active,body.android #navigation-container #indicator li.active{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.2)}
body.iphone #navigation-container #indicator li:last-child,body.ipad #navigation-container #indicator li:last-child,body.android #navigation-container #indicator li:last-child{margin:0}
body.iphone .btn-play-bg,body.ipad .btn-play-bg,body.android .btn-play-bg{width:258px;height:144px;margin:0 auto;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,0.5);border:1px solid rgba(162,218,255,0.5)}
body.iphone .btn-play,body.ipad .btn-play,body.android .btn-play{width:50px;height:50px;font-size:25px;line-height:52px;border-radius:200px;border:4px solid #fff;-webkit-box-shadow:0 4px 4px rgba(0,0,0,0.5),inset 0 -2px 5px rgba(0,150,255,0.5),inset 2px 0 5px rgba(0,150,255,0.5),inset -2px 0 5px rgba(0,150,255,0.5);text-shadow:0 4px 4px rgba(0,0,0,0.5)}
body.iphone .btn-play span,body.ipad .btn-play span,body.android .btn-play span{margin-left:5px;font-size:25px}
body.iphone #game-info,body.ipad #game-info,body.android #game-info{margin:0;padding:0;}
body.iphone #game-info li .game-name,body.ipad #game-info li .game-name,body.android #game-info li .game-name{font-size:16px}
body.iphone #game-info li .description,body.ipad #game-info li .description,body.android #game-info li .description{padding:0;font-size:12px}
body.iphone .btn-watch-now,body.ipad .btn-watch-now,body.android .btn-watch-now{padding:15px 25px 15px 25px;border-radius:5px;font-size:22px;line-height:20px;width:150px;margin:25px auto 0 auto}
body.iphone .btn-watch-now.disabled,body.ipad .btn-watch-now.disabled,body.android .btn-watch-now.disabled{-webkit-box-shadow:none;opacity:.25}
body.iphone .btn-watch-now:active,body.ipad .btn-watch-now:active,body.android .btn-watch-now:active{opacity:.5}
body.iphone.landscape .btn-watch-now,body.ipad.landscape .btn-watch-now,body.android.landscape .btn-watch-now{display:none}
body.iphone.landscape .header-container,body.ipad.landscape .header-container,body.android.landscape .header-container{margin-top:0}
body.iphone.landscape .campaigns-container,body.ipad.landscape .campaigns-container,body.android.landscape .campaigns-container{height:185px}
body.iphone .btn-close-region,body.ipad .btn-close-region,body.android .btn-close-region{top:0;right:0;width:55px;height:55px}
body.iphone .btn-watch-again-region,body.ipad .btn-watch-again-region,body.android .btn-watch-again-region{top:0;left:0;width:55px;height:55px}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again,body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close{top:10px;font-size:28px;width:32px;height:32px;border-radius:17px}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again{line-height:33px;left:10px}
body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close{line-height:28px;right:10px}
body.iphone .game-background,body.ipad .game-background,body.android .game-background{-webkit-box-shadow:0 4px 0 0 #007aff}
body.iphone .end-screen-info-background,body.ipad .end-screen-info-background,body.android .end-screen-info-background{border-top:4px solid #007aff;-webkit-box-shadow:0 -5px 10px rgba(28,28,28,0.5)}
body.iphone .name-container,body.ipad .name-container,body.android .name-container{font-size:20pt;text-overflow:ellipsis;-webkit-line-clamp:2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}
body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:20px;margin-left:18px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{padding-left:10px;padding-right:10px;padding-top:8px;font-size:17pt}
body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{width:75px;height:75px;border-radius:18pt;margin-bottom:20px}
body.iphone .store-container,body.ipad .store-container,body.android .store-container{margin-left:10px;margin-top:5px}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:20px;letter-spacing:5px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:17px}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{margin:0 15px 0 15px;padding:10px 10px 10px 10px;border-radius:10px;font-size:18pt;line-height:24pt;margin-top:45px;}
body.iphone .btn-download .icon-download,body.ipad .btn-download .icon-download,body.android .btn-download .icon-download{width:32px;height:32px;border-radius:16px;font-size:20px;line-height:29px}
body.iphone .everyplay-gameads-logo,body.ipad .everyplay-gameads-logo,body.android .everyplay-gameads-logo{width:68px;height:16px;bottom:10px}
body.iphone.landscape .end-screen-info-background,body.ipad.landscape .end-screen-info-background,body.android.landscape .end-screen-info-background{border-top:none;border-left:4px solid #007aff}
body.iphone.landscape .btn-close-region,body.ipad.landscape .btn-close-region,body.android.landscape .btn-close-region{top:0;bottom:auto}
body.iphone.landscape .btn-watch-again-region,body.ipad.landscape .btn-watch-again-region,body.android.landscape .btn-watch-again-region{top:auto;bottom:0;left:0}
body.iphone.landscape a.btn-watch-again,body.ipad.landscape a.btn-watch-again,body.android.landscape a.btn-watch-again{top:auto;bottom:10px;left:10px}
body.iphone.landscape a.btn-close,body.ipad.landscape a.btn-close,body.android.landscape a.btn-close{top:10px;bottom:auto}
body.iphone.landscape .end-screen .btn-close-region,body.ipad.landscape .end-screen .btn-close-region,body.android.landscape .end-screen .btn-close-region{left:0;right:auto}
body.iphone.landscape .end-screen a.btn-close,body.ipad.landscape .end-screen a.btn-close,body.android.landscape .end-screen a.btn-close{left:10px}
body.iphone.landscape .start-screen .btn-close-region,body.ipad.landscape .start-screen .btn-close-region,body.android.landscape .start-screen .btn-close-region{right:0;left:auto}
body.iphone.landscape .start-screen a.btn-close,body.ipad.landscape .start-screen a.btn-close,body.android.landscape .start-screen a.btn-close{right:10px;margin-top:0}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:25px;margin-left:auto;text-align:center}
body.iphone.landscape .game-icon,body.ipad.landscape .game-icon,body.android.landscape .game-icon{left:0;right:0;position:absolute;margin:auto}
body.iphone.landscape .game-icon-shadow,body.ipad.landscape .game-icon-shadow,body.android.landscape .game-icon-shadow{background-image:url("img/icon_shadow.png");background-position:center;background-size:cover;margin:auto;position:absolute;left:0;right:0;width:79px;height:12px;margin-top:79px}
body.iphone.landscape .name-container,body.ipad.landscape .name-container,body.android.landscape .name-container{font-size:18pt;padding-top:95px}
body.iphone.landscape .store-container,body.ipad.landscape .store-container,body.android.landscape .store-container{float:none;clear:both;margin-left:auto;padding-top:0;text-align:center}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{font-size:11pt;padding:5px 10px 5px 10px;margin-top:15px}
body.iphone.landscape .icon-download,body.ipad.landscape .icon-download,body.android.landscape .icon-download{line-height:22pt}
body.iphone.landscape .everyplay-gameads-logo,body.ipad.landscape .everyplay-gameads-logo,body.android.landscape .everyplay-gameads-logo{bottom:20px}
body.iphone .spinner-container,body.ipad .spinner-container,body.android .spinner-container{padding:10px 15px;border-radius:10px;-webkit-box-shadow:0 0 50px #fff;border:3px solid #fff;letter-spacing:1px}
body.iphone .spinner-text,body.ipad .spinner-text,body.android .spinner-text{line-height:32px}
body.iphone .error-container,body.ipad .error-container,body.android .error-container,body.iphone .privacy-container,body.ipad .privacy-container,body.android .privacy-container{padding:10px 15px;border-radius:20px;-webkit-box-shadow:0 0 20px #fff;border:3px solid #fff;letter-spacing:1px;margin:0 10px}
body.iphone .error-text,body.ipad .error-text,body.android .error-text,body.iphone .privacy-text,body.ipad .privacy-text,body.android .privacy-text,body.iphone .privacy-simple-text,body.ipad .privacy-simple-text,body.android .privacy-simple-text{line-height:17px;font-size:12px;text-align:justify}
body.iphone .btn-ok,body.ipad .btn-ok,body.android .btn-ok,body.iphone .btn-cancel,body.ipad .btn-cancel,body.android .btn-cancel{padding:5px;margin:5px 0;-webkit-box-shadow:0 8px 8px rgba(0,0,0,0.5);border-radius:10px;font-size:18px;line-height:20px}
@media screen and (max-height: 320px) and (max-width: 427px),screen and (max-height: 427px) and (max-width: 320px){body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{width:60px;height:60px;border-radius:12pt}
body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:15px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{font-size:15pt}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{padding:5px 5px 5px 5px;font-size:16pt}
body.iphone.landscape .game-icon-shadow,body.ipad.landscape .game-icon-shadow,body.android.landscape .game-icon-shadow{margin-top:67px}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:35px;}
body.iphone.landscape .game-info .name-container,body.ipad.landscape .game-info .name-container,body.android.landscape .game-info .name-container{font-size:13pt}
body.iphone.landscape .game-rating,body.ipad.landscape .game-rating,body.android.landscape .game-rating{font-size:17px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{font-size:9pt;padding:5px 5px 5px 5px;}
body.iphone.landscape .btn-download .icon-download,body.ipad.landscape .btn-download .icon-download,body.android.landscape .btn-download .icon-download{width:24px;height:24px;font-size:15px;margin-top:3px;line-height:24px}
}@media screen and (min-height: 568px) and (min-width: 320px),screen and (min-height: 320px) and (min-width: 568px){body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:22px}
body.iphone .name-container,body.ipad .name-container,body.android .name-container{padding-top:10px}
body.iphone .store-container,body.ipad .store-container,body.android .store-container{margin-top:10px}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{margin-top:65px;padding:15px 10px 15px 10px}
body.iphone .everyplay-gameads-logo,body.ipad .everyplay-gameads-logo,body.android .everyplay-gameads-logo{bottom:20px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{font-size:14pt}
}@media screen and (min-height: 360px) and (min-width: 640px),screen and (min-height: 640px) and (min-width: 360px){body.iphone .btn-watch-again-region,body.ipad .btn-watch-again-region,body.android .btn-watch-again-region{width:75px;height:75px}
body.iphone .btn-close-region,body.ipad .btn-close-region,body.android .btn-close-region{width:75px;height:75px}
body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:35px}
body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{width:85px;height:85px}
body.iphone .name-container,body.ipad .name-container,body.android .name-container{font-size:20pt}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:25px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:21px}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{margin-top:90px}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:20px}
body.iphone.landscape .game-icon-shadow,body.ipad.landscape .game-icon-shadow,body.android.landscape .game-icon-shadow{margin-top:90px}
body.iphone.landscape .name-container,body.ipad.landscape .name-container,body.android.landscape .name-container{padding-top:115px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{padding:10px 10px 10px 10px}
}@media screen and (min-height: 384px) and (min-width: 640px),screen and (min-height: 640px) and (min-width: 384px){body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:45px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{padding:15px 10px 15px 10px;font-size:16pt}
}@media screen and (min-height: 424px) and (min-width: 753px),screen and (min-height: 753px) and (min-width: 424px){body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:50px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{font-size:21pt}
body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{width:100px;height:100px}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:30px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:24px}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{padding:25px 20px 25px 20px;font-size:22pt;line-height:22pt}
body.iphone .everyplay-gameads-logo,body.ipad .everyplay-gameads-logo,body.android .everyplay-gameads-logo{width:102px;height:24px}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:35px}
body.iphone.landscape .name-container,body.ipad.landscape .name-container,body.android.landscape .name-container{padding-top:125px}
body.iphone.landscape .game-icon-shadow,body.ipad.landscape .game-icon-shadow,body.android.landscape .game-icon-shadow{margin-top:105px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{font-size:19pt;line-height:19pt}
}@media screen and (min-height: 540px) and (min-width: 960px),screen and (min-height: 960px) and (min-width: 540px){body.iphone .btn-watch-again-region,body.ipad .btn-watch-again-region,body.android .btn-watch-again-region,body.iphone .btn-close-region,body.ipad .btn-close-region,body.android .btn-close-region{width:95px;height:95px}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again,body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close{top:20px;width:50px;height:50px;border-radius:25px;font-size:42px}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again{left:20px;line-height:50px}
body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close{right:20px;line-height:45px}
body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{width:130px;height:130px}
body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:60px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{font-size:27pt}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:40px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:30px}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{padding:30px 25px 30px 25px;font-size:26pt;line-height:26pt;margin-top:120px;}
body.iphone .btn-download .icon-download,body.ipad .btn-download .icon-download,body.android .btn-download .icon-download{width:50px;height:50px;font-size:30px;line-height:47px;border-radius:25px;margin-top:-7px}
body.iphone.landscape .end-screen-info,body.ipad.landscape .end-screen-info,body.android.landscape .end-screen-info{margin:30px}
body.iphone.landscape a.btn-watch-again,body.ipad.landscape a.btn-watch-again,body.android.landscape a.btn-watch-again{bottom:20px;left:20px;top:auto}
body.iphone.landscape .end-screen a.btn-close,body.ipad.landscape .end-screen a.btn-close,body.android.landscape .end-screen a.btn-close{top:20px;left:20px;right:auto}
body.iphone.landscape .game-icon-shadow,body.ipad.landscape .game-icon-shadow,body.android.landscape .game-icon-shadow{margin-top:145px;width:119px;height:18px}
body.iphone.landscape .name-container,body.ipad.landscape .name-container,body.android.landscape .name-container{padding-top:175px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{padding:25px 20px 25px 20px;font-size:21pt;line-height:21pt}
body.iphone.landscape .icon-download,body.ipad.landscape .icon-download,body.android.landscape .icon-download{margin-top:-11px}
}@media screen and (min-height: 600px) and (min-width: 906px),screen and (min-height: 906px) and (min-width: 600px){body.iphone .end-screen-info,body.ipad .end-screen-info,body.android .end-screen-info{margin:30px}
body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:70px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{font-size:29pt}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:70px}
}@media screen and (min-height: 600px) and (min-width: 1024px),screen and (min-height: 1024px) and (min-width: 600px){body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:50px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{font-size:31pt}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:45px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:35px}
body.iphone .everyplay-gameads-logo,body.ipad .everyplay-gameads-logo,body.android .everyplay-gameads-logo{width:153px;height:36px}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:40px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{padding:30px 20px 30px 20px;font-size:24pt;line-height:24pt;margin-top:30px}
}@media screen and (min-height: 768px) and (min-width: 1024px),screen and (min-height: 1024px) and (min-width: 768px){body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:50px;}
body.iphone .game-info .name-container,body.ipad .game-info .name-container,body.android .game-info .name-container{padding-left:30px;font-size:38pt}
body.iphone .store-container,body.ipad .store-container,body.android .store-container{margin-left:30px}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:50px;letter-spacing:15px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:40px}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:140px;}
body.iphone.landscape .game-info .name-container,body.ipad.landscape .game-info .name-container,body.android.landscape .game-info .name-container{font-size:32pt;padding-left:10px}
body.iphone.landscape .game-rating,body.ipad.landscape .game-rating,body.android.landscape .game-rating{font-size:45px;letter-spacing:5px}
}@media screen and (min-height: 800px) and (min-width: 1280px),screen and (min-height: 1280px) and (min-width: 800px){body.iphone .btn-close-region,body.ipad .btn-close-region,body.android .btn-close-region,body.iphone .btn-watch-again-region,body.ipad .btn-watch-again-region,body.android .btn-watch-again-region{width:130px;height:130px}
body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close,body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again{width:75px;height:75px;border-radius:45px;font-size:80px}
body.iphone a.btn-watch-again,body.ipad a.btn-watch-again,body.android a.btn-watch-again{line-height:75px}
body.iphone a.btn-close,body.ipad a.btn-close,body.android a.btn-close{line-height:60px}
body.iphone .game-info,body.ipad .game-info,body.android .game-info{margin-top:70px}
body.iphone .game-icon,body.ipad .game-icon,body.android .game-icon{width:150px;height:150px}
body.iphone .game-rating,body.ipad .game-rating,body.android .game-rating{font-size:55px}
body.iphone .game-rating-count,body.ipad .game-rating-count,body.android .game-rating-count{font-size:45px}
body.iphone .btn-download,body.ipad .btn-download,body.android .btn-download{padding:45px 25px 45px 25px;font-size:35pt;line-height:35pt;margin-top:160px;}
body.iphone .btn-download .icon-download,body.ipad .btn-download .icon-download,body.android .btn-download .icon-download{width:75px;height:75px;border-radius:45px;font-size:45px;line-height:73px;margin-top:-15px}
body.iphone.landscape .game-icon-shadow,body.ipad.landscape .game-icon-shadow,body.android.landscape .game-icon-shadow{margin-top:165px}
body.iphone.landscape .game-info,body.ipad.landscape .game-info,body.android.landscape .game-info{margin-top:120px;}
body.iphone.landscape .game-info .name-container,body.ipad.landscape .game-info .name-container,body.android.landscape .game-info .name-container{font-size:37pt;padding-top:200px}
body.iphone.landscape .btn-download,body.ipad.landscape .btn-download,body.android.landscape .btn-download{padding:40px 20px 40px 20px;font-size:30pt;line-height:30pt}
}body.iphone.uglified .game-info{margin-bottom:5px;margin-top:10px;margin-left:0;text-align:center}
body.iphone.uglified .game-icon{display:none}
body.iphone.uglified .game-background{width:85%;margin:auto;left:0;right:0;margin-left:25px;margin-right:25px;box-shadow:1px 1px 3px 1px #808080;border-radius:0 0 10px 10px}
body.iphone.uglified .end-screen-info-background{border-top:none;box-shadow:none;background-image:none;background:none}
body.iphone.uglified .btn-close{box-shadow:1px 1px 2px -1px #808080}
body.iphone.uglified .btn-watch-again{box-shadow:1px -1px 2px -1px #808080}
body.iphone.uglified .game-store-info{display:none}
body.iphone.uglified .icon-download{display:none}
body.iphone.uglified .download-text{display:none}
body.iphone.uglified .download-text-alt{display:inline;font-size:16pt;line-height:16pt}
body.iphone.uglified .btn-download{width:150px;height:30px;margin:auto;margin-bottom:10px;border-radius:4px;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#76e13c),color-stop(100%,#107c01));background:-webkit-linear-gradient(top,#76e13c,#107c01);text-shadow:none}
body.iphone.uglified .store-badge-container{display:block;background-image:url("img/appstorebadge.png");background-position:center;background-size:cover;margin:auto;position:absolute;left:0;right:0;width:175px;height:48px}
body.iphone.uglified.landscape .game-info{margin-top:20px}
body.iphone.uglified.landscape .game-icon{display:block}
body.iphone.uglified.landscape .game-background{width:54%;margin-top:25px;margin-bottom:25px;border-radius:0 10px 10px 0;box-shadow:1px 3px 5px 0 #808080;left:auto;right:auto;margin-left:0;margin-right:0}
body.iphone.uglified.landscape .end-screen-info-background{border-left:none;box-shadow:none;width:45%}
body.iphone.uglified.landscape .btn-download{width:150px;height:38px}
body.iphone.uglified.landscape .download-text-alt{line-height:30pt}
body.iphone.uglified.landscape .everyplay-gameads-logo{bottom:10px}
@media screen and (min-height: 568px) and (min-width: 320px),screen and (min-height: 320px) and (min-width: 568px){body.iphone.uglified .game-background{bottom:44%}
body.iphone.uglified .end-screen-info-background{height:43%}
body.iphone.uglified .everyplay-gameads-logo{bottom:10px}
body.iphone.uglified.landscape .game-info{margin-top:15px}
body.iphone.uglified.landscape .game-background{width:59%;bottom:0}
body.iphone.uglified.landscape .end-screen-info-background{width:40%;height:100%}
}</style>
    <script type="text/javascript">/**
 * almond 0.2.5 Copyright (c) 2011-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/almond for details
 */

//     Underscore.js 1.4.4
//     http://underscorejs.org
//     (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
//     Underscore may be freely distributed under the MIT license.

/* Zepto v1.0-3-g342d490 - zepto event fx ajax touch - zeptojs.com/license */

//     (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
//     Backbone may be freely distributed under the MIT license.
//     For all details and documentation:
//     http://backbonejs.org

// i18next, v1.7.2
// Copyright (c)2014 Jan Mühlemann (jamuhl).
// Distributed under MIT license
// http://i18next.com

/**
 * RequireJS i18next Plugin
 * 
 * @version 0.4.0
 * @copyright 2013-2014 Jacob van Mourik
 * @license MIT
 */

/**
 * @license RequireJS text 2.0.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/requirejs/text for details
 */

(function() {
  var e, t, n;
  (function(r) {
    function i(e, t) {
      return w.call(e, t);
    }
    function a(e, t) {
      var n, r, i, a, o, s, u, l, c, f, p = t && t.split("/"), d = b.map, h = d && d["*"] || {};
      if (e && "." === e.charAt(0)) if (t) {
        for (p = p.slice(0, p.length - 1), e = p.concat(e.split("/")), l = 0; l < e.length; l += 1) if (f = e[l], 
        "." === f) e.splice(l, 1), l -= 1; else if (".." === f) {
          if (1 === l && (".." === e[2] || ".." === e[0])) break;
          l > 0 && (e.splice(l - 1, 2), l -= 2);
        }
        e = e.join("/");
      } else 0 === e.indexOf("./") && (e = e.substring(2));
      if ((p || h) && d) {
        for (n = e.split("/"), l = n.length; l > 0; l -= 1) {
          if (r = n.slice(0, l).join("/"), p) for (c = p.length; c > 0; c -= 1) if (i = d[p.slice(0, c).join("/")], 
          i && (i = i[r])) {
            a = i, o = l;
            break;
          }
          if (a) break;
          !s && h && h[r] && (s = h[r], u = l);
        }
        !a && s && (a = s, o = u), a && (n.splice(0, o, a), e = n.join("/"));
      }
      return e;
    }
    function o(e, t) {
      return function() {
        return d.apply(r, x.call(arguments, 0).concat([ e, t ]));
      };
    }
    function s(e) {
      return function(t) {
        return a(t, e);
      };
    }
    function u(e) {
      return function(t) {
        g[e] = t;
      };
    }
    function l(e) {
      if (i(v, e)) {
        var t = v[e];
        delete v[e], y[e] = !0, p.apply(r, t);
      }
      if (!i(g, e) && !i(y, e)) throw new Error("No " + e);
      return g[e];
    }
    function c(e) {
      var t, n = e ? e.indexOf("!") : -1;
      return n > -1 && (t = e.substring(0, n), e = e.substring(n + 1, e.length)), [ t, e ];
    }
    function f(e) {
      return function() {
        return b && b.config && b.config[e] || {};
      };
    }
    var p, d, h, m, g = {}, v = {}, b = {}, y = {}, w = Object.prototype.hasOwnProperty, x = [].slice;
    h = function(e, t) {
      var n, r = c(e), i = r[0];
      return e = r[1], i && (i = a(i, t), n = l(i)), i ? e = n && n.normalize ? n.normalize(e, s(t)) : a(e, t) : (e = a(e, t), 
      r = c(e), i = r[0], e = r[1], i && (n = l(i))), {
        f: i ? i + "!" + e : e,
        n: e,
        pr: i,
        p: n
      };
    }, m = {
      require: function(e) {
        return o(e);
      },
      exports: function(e) {
        var t = g[e];
        return "undefined" != typeof t ? t : g[e] = {};
      },
      module: function(e) {
        return {
          id: e,
          uri: "",
          exports: g[e],
          config: f(e)
        };
      }
    }, p = function(e, t, n, a) {
      var s, c, f, p, d, b, w = [];
      if (a = a || e, "function" == typeof n) {
        for (t = !t.length && n.length ? [ "require", "exports", "module" ] : t, d = 0; d < t.length; d += 1) if (p = h(t[d], a), 
        c = p.f, "require" === c) w[d] = m.require(e); else if ("exports" === c) w[d] = m.exports(e), 
        b = !0; else if ("module" === c) s = w[d] = m.module(e); else if (i(g, c) || i(v, c) || i(y, c)) w[d] = l(c); else {
          if (!p.p) throw new Error(e + " missing " + c);
          p.p.load(p.n, o(a, !0), u(c), {}), w[d] = g[c];
        }
        f = n.apply(g[e], w), e && (s && s.exports !== r && s.exports !== g[e] ? g[e] = s.exports : f === r && b || (g[e] = f));
      } else e && (g[e] = n);
    }, e = t = d = function(e, t, n, i, a) {
      return "string" == typeof e ? m[e] ? m[e](t) : l(h(e, t).f) : (e.splice || (b = e, 
      t.splice ? (e = t, t = n, n = null) : e = r), t = t || function() {}, "function" == typeof n && (n = i, 
      i = a), i ? p(r, e, t, n) : setTimeout(function() {
        p(r, e, t, n);
      }, 4), d);
    }, d.config = function(e) {
      return b = e, b.deps && d(b.deps, b.callback), d;
    }, n = function(e, t, n) {
      t.splice || (n = t, t = []), i(g, e) || i(v, e) || (v[e] = [ e, t, n ]);
    }, n.amd = {
      jQuery: !0
    };
  })(), n("vendor/almond", function() {}), function() {
    var e = this, t = e._, n = {}, r = Array.prototype, i = Object.prototype, a = Function.prototype, o = r.push, s = r.slice, u = r.concat, l = i.toString, c = i.hasOwnProperty, f = r.forEach, p = r.map, d = r.reduce, h = r.reduceRight, m = r.filter, g = r.every, v = r.some, b = r.indexOf, y = r.lastIndexOf, w = Array.isArray, x = Object.keys, _ = a.bind, k = function(e) {
      return e instanceof k ? e : this instanceof k ? (this._wrapped = e, void 0) : new k(e);
    };
    "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = k), 
    exports._ = k) : e._ = k, k.VERSION = "1.4.4";
    var N = k.each = k.forEach = function(e, t, r) {
      if (null != e) if (f && e.forEach === f) e.forEach(t, r); else if (e.length === +e.length) {
        for (var i = 0, a = e.length; a > i; i++) if (t.call(r, e[i], i, e) === n) return;
      } else for (var o in e) if (k.has(e, o) && t.call(r, e[o], o, e) === n) return;
    };
    k.map = k.collect = function(e, t, n) {
      var r = [];
      return null == e ? r : p && e.map === p ? e.map(t, n) : (N(e, function(e, i, a) {
        r[r.length] = t.call(n, e, i, a);
      }), r);
    };
    var E = "Reduce of empty array with no initial value";
    k.reduce = k.foldl = k.inject = function(e, t, n, r) {
      var i = arguments.length > 2;
      if (null == e && (e = []), d && e.reduce === d) return r && (t = k.bind(t, r)), 
      i ? e.reduce(t, n) : e.reduce(t);
      if (N(e, function(e, a, o) {
        i ? n = t.call(r, n, e, a, o) : (n = e, i = !0);
      }), !i) throw new TypeError(E);
      return n;
    }, k.reduceRight = k.foldr = function(e, t, n, r) {
      var i = arguments.length > 2;
      if (null == e && (e = []), h && e.reduceRight === h) return r && (t = k.bind(t, r)), 
      i ? e.reduceRight(t, n) : e.reduceRight(t);
      var a = e.length;
      if (a !== +a) {
        var o = k.keys(e);
        a = o.length;
      }
      if (N(e, function(s, u, l) {
        u = o ? o[--a] : --a, i ? n = t.call(r, n, e[u], u, l) : (n = e[u], i = !0);
      }), !i) throw new TypeError(E);
      return n;
    }, k.find = k.detect = function(e, t, n) {
      var r;
      return T(e, function(e, i, a) {
        return t.call(n, e, i, a) ? (r = e, !0) : void 0;
      }), r;
    }, k.filter = k.select = function(e, t, n) {
      var r = [];
      return null == e ? r : m && e.filter === m ? e.filter(t, n) : (N(e, function(e, i, a) {
        t.call(n, e, i, a) && (r[r.length] = e);
      }), r);
    }, k.reject = function(e, t, n) {
      return k.filter(e, function(e, r, i) {
        return !t.call(n, e, r, i);
      }, n);
    }, k.every = k.all = function(e, t, r) {
      t || (t = k.identity);
      var i = !0;
      return null == e ? i : g && e.every === g ? e.every(t, r) : (N(e, function(e, a, o) {
        return (i = i && t.call(r, e, a, o)) ? void 0 : n;
      }), !!i);
    };
    var T = k.some = k.any = function(e, t, r) {
      t || (t = k.identity);
      var i = !1;
      return null == e ? i : v && e.some === v ? e.some(t, r) : (N(e, function(e, a, o) {
        return i || (i = t.call(r, e, a, o)) ? n : void 0;
      }), !!i);
    };
    k.contains = k.include = function(e, t) {
      return null == e ? !1 : b && e.indexOf === b ? -1 != e.indexOf(t) : T(e, function(e) {
        return e === t;
      });
    }, k.invoke = function(e, t) {
      var n = s.call(arguments, 2), r = k.isFunction(t);
      return k.map(e, function(e) {
        return (r ? t : e[t]).apply(e, n);
      });
    }, k.pluck = function(e, t) {
      return k.map(e, function(e) {
        return e[t];
      });
    }, k.where = function(e, t, n) {
      return k.isEmpty(t) ? n ? null : [] : k[n ? "find" : "filter"](e, function(e) {
        for (var n in t) if (t[n] !== e[n]) return !1;
        return !0;
      });
    }, k.findWhere = function(e, t) {
      return k.where(e, t, !0);
    }, k.max = function(e, t, n) {
      if (!t && k.isArray(e) && e[0] === +e[0] && e.length < 65535) return Math.max.apply(Math, e);
      if (!t && k.isEmpty(e)) return -1/0;
      var r = {
        computed: -1/0,
        value: -1/0
      };
      return N(e, function(e, i, a) {
        var o = t ? t.call(n, e, i, a) : e;
        o >= r.computed && (r = {
          value: e,
          computed: o
        });
      }), r.value;
    }, k.min = function(e, t, n) {
      if (!t && k.isArray(e) && e[0] === +e[0] && e.length < 65535) return Math.min.apply(Math, e);
      if (!t && k.isEmpty(e)) return 1/0;
      var r = {
        computed: 1/0,
        value: 1/0
      };
      return N(e, function(e, i, a) {
        var o = t ? t.call(n, e, i, a) : e;
        o < r.computed && (r = {
          value: e,
          computed: o
        });
      }), r.value;
    }, k.shuffle = function(e) {
      var t, n = 0, r = [];
      return N(e, function(e) {
        t = k.random(n++), r[n - 1] = r[t], r[t] = e;
      }), r;
    };
    var S = function(e) {
      return k.isFunction(e) ? e : function(t) {
        return t[e];
      };
    };
    k.sortBy = function(e, t, n) {
      var r = S(t);
      return k.pluck(k.map(e, function(e, t, i) {
        return {
          value: e,
          index: t,
          criteria: r.call(n, e, t, i)
        };
      }).sort(function(e, t) {
        var n = e.criteria, r = t.criteria;
        if (n !== r) {
          if (n > r || void 0 === n) return 1;
          if (r > n || void 0 === r) return -1;
        }
        return e.index < t.index ? -1 : 1;
      }), "value");
    };
    var O = function(e, t, n, r) {
      var i = {}, a = S(t || k.identity);
      return N(e, function(t, o) {
        var s = a.call(n, t, o, e);
        r(i, s, t);
      }), i;
    };
    k.groupBy = function(e, t, n) {
      return O(e, t, n, function(e, t, n) {
        (k.has(e, t) ? e[t] : e[t] = []).push(n);
      });
    }, k.countBy = function(e, t, n) {
      return O(e, t, n, function(e, t) {
        k.has(e, t) || (e[t] = 0), e[t]++;
      });
    }, k.sortedIndex = function(e, t, n, r) {
      n = null == n ? k.identity : S(n);
      for (var i = n.call(r, t), a = 0, o = e.length; o > a; ) {
        var s = a + o >>> 1;
        n.call(r, e[s]) < i ? a = s + 1 : o = s;
      }
      return a;
    }, k.toArray = function(e) {
      return e ? k.isArray(e) ? s.call(e) : e.length === +e.length ? k.map(e, k.identity) : k.values(e) : [];
    }, k.size = function(e) {
      return null == e ? 0 : e.length === +e.length ? e.length : k.keys(e).length;
    }, k.first = k.head = k.take = function(e, t, n) {
      return null == e ? void 0 : null == t || n ? e[0] : s.call(e, 0, t);
    }, k.initial = function(e, t, n) {
      return s.call(e, 0, e.length - (null == t || n ? 1 : t));
    }, k.last = function(e, t, n) {
      return null == e ? void 0 : null == t || n ? e[e.length - 1] : s.call(e, Math.max(e.length - t, 0));
    }, k.rest = k.tail = k.drop = function(e, t, n) {
      return s.call(e, null == t || n ? 1 : t);
    }, k.compact = function(e) {
      return k.filter(e, k.identity);
    };
    var C = function(e, t, n) {
      return N(e, function(e) {
        k.isArray(e) ? t ? o.apply(n, e) : C(e, t, n) : n.push(e);
      }), n;
    };
    k.flatten = function(e, t) {
      return C(e, t, []);
    }, k.without = function(e) {
      return k.difference(e, s.call(arguments, 1));
    }, k.uniq = k.unique = function(e, t, n, r) {
      k.isFunction(t) && (r = n, n = t, t = !1);
      var i = n ? k.map(e, n, r) : e, a = [], o = [];
      return N(i, function(n, r) {
        (t ? r && o[o.length - 1] === n : k.contains(o, n)) || (o.push(n), a.push(e[r]));
      }), a;
    }, k.union = function() {
      return k.uniq(u.apply(r, arguments));
    }, k.intersection = function(e) {
      var t = s.call(arguments, 1);
      return k.filter(k.uniq(e), function(e) {
        return k.every(t, function(t) {
          return k.indexOf(t, e) >= 0;
        });
      });
    }, k.difference = function(e) {
      var t = u.apply(r, s.call(arguments, 1));
      return k.filter(e, function(e) {
        return !k.contains(t, e);
      });
    }, k.zip = function() {
      for (var e = s.call(arguments), t = k.max(k.pluck(e, "length")), n = new Array(t), r = 0; t > r; r++) n[r] = k.pluck(e, "" + r);
      return n;
    }, k.object = function(e, t) {
      if (null == e) return {};
      for (var n = {}, r = 0, i = e.length; i > r; r++) t ? n[e[r]] = t[r] : n[e[r][0]] = e[r][1];
      return n;
    }, k.indexOf = function(e, t, n) {
      if (null == e) return -1;
      var r = 0, i = e.length;
      if (n) {
        if ("number" != typeof n) return r = k.sortedIndex(e, t), e[r] === t ? r : -1;
        r = 0 > n ? Math.max(0, i + n) : n;
      }
      if (b && e.indexOf === b) return e.indexOf(t, n);
      for (;i > r; r++) if (e[r] === t) return r;
      return -1;
    }, k.lastIndexOf = function(e, t, n) {
      if (null == e) return -1;
      var r = null != n;
      if (y && e.lastIndexOf === y) return r ? e.lastIndexOf(t, n) : e.lastIndexOf(t);
      for (var i = r ? n : e.length; i--; ) if (e[i] === t) return i;
      return -1;
    }, k.range = function(e, t, n) {
      arguments.length <= 1 && (t = e || 0, e = 0), n = arguments[2] || 1;
      for (var r = Math.max(Math.ceil((t - e) / n), 0), i = 0, a = new Array(r); r > i; ) a[i++] = e, 
      e += n;
      return a;
    }, k.bind = function(e, t) {
      if (e.bind === _ && _) return _.apply(e, s.call(arguments, 1));
      var n = s.call(arguments, 2);
      return function() {
        return e.apply(t, n.concat(s.call(arguments)));
      };
    }, k.partial = function(e) {
      var t = s.call(arguments, 1);
      return function() {
        return e.apply(this, t.concat(s.call(arguments)));
      };
    }, k.bindAll = function(e) {
      var t = s.call(arguments, 1);
      return 0 === t.length && (t = k.functions(e)), N(t, function(t) {
        e[t] = k.bind(e[t], e);
      }), e;
    }, k.memoize = function(e, t) {
      var n = {};
      return t || (t = k.identity), function() {
        var r = t.apply(this, arguments);
        return k.has(n, r) ? n[r] : n[r] = e.apply(this, arguments);
      };
    }, k.delay = function(e, t) {
      var n = s.call(arguments, 2);
      return setTimeout(function() {
        return e.apply(null, n);
      }, t);
    }, k.defer = function(e) {
      return k.delay.apply(k, [ e, 1 ].concat(s.call(arguments, 1)));
    }, k.throttle = function(e, t) {
      var n, r, i, a, o = 0, s = function() {
        o = new Date(), i = null, a = e.apply(n, r);
      };
      return function() {
        var u = new Date(), l = t - (u - o);
        return n = this, r = arguments, 0 >= l ? (clearTimeout(i), i = null, o = u, a = e.apply(n, r)) : i || (i = setTimeout(s, l)), 
        a;
      };
    }, k.debounce = function(e, t, n) {
      var r, i;
      return function() {
        var a = this, o = arguments, s = function() {
          r = null, n || (i = e.apply(a, o));
        }, u = n && !r;
        return clearTimeout(r), r = setTimeout(s, t), u && (i = e.apply(a, o)), i;
      };
    }, k.once = function(e) {
      var t, n = !1;
      return function() {
        return n ? t : (n = !0, t = e.apply(this, arguments), e = null, t);
      };
    }, k.wrap = function(e, t) {
      return function() {
        var n = [ e ];
        return o.apply(n, arguments), t.apply(this, n);
      };
    }, k.compose = function() {
      var e = arguments;
      return function() {
        for (var t = arguments, n = e.length - 1; n >= 0; n--) t = [ e[n].apply(this, t) ];
        return t[0];
      };
    }, k.after = function(e, t) {
      return 0 >= e ? t() : function() {
        return --e < 1 ? t.apply(this, arguments) : void 0;
      };
    }, k.keys = x || function(e) {
      if (e !== Object(e)) throw new TypeError("Invalid object");
      var t = [];
      for (var n in e) k.has(e, n) && (t[t.length] = n);
      return t;
    }, k.values = function(e) {
      var t = [];
      for (var n in e) k.has(e, n) && t.push(e[n]);
      return t;
    }, k.pairs = function(e) {
      var t = [];
      for (var n in e) k.has(e, n) && t.push([ n, e[n] ]);
      return t;
    }, k.invert = function(e) {
      var t = {};
      for (var n in e) k.has(e, n) && (t[e[n]] = n);
      return t;
    }, k.functions = k.methods = function(e) {
      var t = [];
      for (var n in e) k.isFunction(e[n]) && t.push(n);
      return t.sort();
    }, k.extend = function(e) {
      return N(s.call(arguments, 1), function(t) {
        if (t) for (var n in t) e[n] = t[n];
      }), e;
    }, k.pick = function(e) {
      var t = {}, n = u.apply(r, s.call(arguments, 1));
      return N(n, function(n) {
        n in e && (t[n] = e[n]);
      }), t;
    }, k.omit = function(e) {
      var t = {}, n = u.apply(r, s.call(arguments, 1));
      for (var i in e) k.contains(n, i) || (t[i] = e[i]);
      return t;
    }, k.defaults = function(e) {
      return N(s.call(arguments, 1), function(t) {
        if (t) for (var n in t) null == e[n] && (e[n] = t[n]);
      }), e;
    }, k.clone = function(e) {
      return k.isObject(e) ? k.isArray(e) ? e.slice() : k.extend({}, e) : e;
    }, k.tap = function(e, t) {
      return t(e), e;
    };
    var A = function(e, t, n, r) {
      if (e === t) return 0 !== e || 1 / e == 1 / t;
      if (null == e || null == t) return e === t;
      e instanceof k && (e = e._wrapped), t instanceof k && (t = t._wrapped);
      var i = l.call(e);
      if (i != l.call(t)) return !1;
      switch (i) {
       case "[object String]":
        return e == String(t);

       case "[object Number]":
        return e != +e ? t != +t : 0 == e ? 1 / e == 1 / t : e == +t;

       case "[object Date]":
       case "[object Boolean]":
        return +e == +t;

       case "[object RegExp]":
        return e.source == t.source && e.global == t.global && e.multiline == t.multiline && e.ignoreCase == t.ignoreCase;
      }
      if ("object" != typeof e || "object" != typeof t) return !1;
      for (var a = n.length; a--; ) if (n[a] == e) return r[a] == t;
      n.push(e), r.push(t);
      var o = 0, s = !0;
      if ("[object Array]" == i) {
        if (o = e.length, s = o == t.length) for (;o-- && (s = A(e[o], t[o], n, r)); ) ;
      } else {
        var u = e.constructor, c = t.constructor;
        if (u !== c && !(k.isFunction(u) && u instanceof u && k.isFunction(c) && c instanceof c)) return !1;
        for (var f in e) if (k.has(e, f) && (o++, !(s = k.has(t, f) && A(e[f], t[f], n, r)))) break;
        if (s) {
          for (f in t) if (k.has(t, f) && !o--) break;
          s = !o;
        }
      }
      return n.pop(), r.pop(), s;
    };
    k.isEqual = function(e, t) {
      return A(e, t, [], []);
    }, k.isEmpty = function(e) {
      if (null == e) return !0;
      if (k.isArray(e) || k.isString(e)) return 0 === e.length;
      for (var t in e) if (k.has(e, t)) return !1;
      return !0;
    }, k.isElement = function(e) {
      return !(!e || 1 !== e.nodeType);
    }, k.isArray = w || function(e) {
      return "[object Array]" == l.call(e);
    }, k.isObject = function(e) {
      return e === Object(e);
    }, N([ "Arguments", "Function", "String", "Number", "Date", "RegExp" ], function(e) {
      k["is" + e] = function(t) {
        return l.call(t) == "[object " + e + "]";
      };
    }), k.isArguments(arguments) || (k.isArguments = function(e) {
      return !(!e || !k.has(e, "callee"));
    }), "function" != typeof /./ && (k.isFunction = function(e) {
      return "function" == typeof e;
    }), k.isFinite = function(e) {
      return isFinite(e) && !isNaN(parseFloat(e));
    }, k.isNaN = function(e) {
      return k.isNumber(e) && e != +e;
    }, k.isBoolean = function(e) {
      return e === !0 || e === !1 || "[object Boolean]" == l.call(e);
    }, k.isNull = function(e) {
      return null === e;
    }, k.isUndefined = function(e) {
      return void 0 === e;
    }, k.has = function(e, t) {
      return c.call(e, t);
    }, k.noConflict = function() {
      return e._ = t, this;
    }, k.identity = function(e) {
      return e;
    }, k.times = function(e, t, n) {
      for (var r = Array(e), i = 0; e > i; i++) r[i] = t.call(n, i);
      return r;
    }, k.random = function(e, t) {
      return null == t && (t = e, e = 0), e + Math.floor(Math.random() * (t - e + 1));
    };
    var j = {
      escape: {
        "&": "&amp;",
        "<": "&lt;",
        ">": "&gt;",
        '"': "&quot;",
        "'": "&#x27;",
        "/": "&#x2F;"
      }
    };
    j.unescape = k.invert(j.escape);
    var I = {
      escape: new RegExp("[" + k.keys(j.escape).join("") + "]", "g"),
      unescape: new RegExp("(" + k.keys(j.unescape).join("|") + ")", "g")
    };
    k.each([ "escape", "unescape" ], function(e) {
      k[e] = function(t) {
        return null == t ? "" : ("" + t).replace(I[e], function(t) {
          return j[e][t];
        });
      };
    }), k.result = function(e, t) {
      if (null == e) return null;
      var n = e[t];
      return k.isFunction(n) ? n.call(e) : n;
    }, k.mixin = function(e) {
      N(k.functions(e), function(t) {
        var n = k[t] = e[t];
        k.prototype[t] = function() {
          var e = [ this._wrapped ];
          return o.apply(e, arguments), z.call(this, n.apply(k, e));
        };
      });
    };
    var P = 0;
    k.uniqueId = function(e) {
      var t = ++P + "";
      return e ? e + t : t;
    }, k.templateSettings = {
      evaluate: /<%([\s\S]+?)%>/g,
      interpolate: /<%=([\s\S]+?)%>/g,
      escape: /<%-([\s\S]+?)%>/g
    };
    var R = /(.)^/, L = {
      "'": "'",
      "\\": "\\",
      "\r": "r",
      "\n": "n",
      "	": "t",
      "\u2028": "u2028",
      "\u2029": "u2029"
    }, M = /\\|'|\r|\n|\t|\u2028|\u2029/g;
    k.template = function(e, t, n) {
      var r;
      n = k.defaults({}, n, k.templateSettings);
      var i = new RegExp([ (n.escape || R).source, (n.interpolate || R).source, (n.evaluate || R).source ].join("|") + "|$", "g"), a = 0, o = "__p+='";
      e.replace(i, function(t, n, r, i, s) {
        return o += e.slice(a, s).replace(M, function(e) {
          return "\\" + L[e];
        }), n && (o += "'+\n((__t=(" + n + "))==null?'':_.escape(__t))+\n'"), r && (o += "'+\n((__t=(" + r + "))==null?'':__t)+\n'"), 
        i && (o += "';\n" + i + "\n__p+='"), a = s + t.length, t;
      }), o += "';\n", n.variable || (o = "with(obj||{}){\n" + o + "}\n"), o = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + o + "return __p;\n";
      try {
        r = new Function(n.variable || "obj", "_", o);
      } catch (s) {
        throw s.source = o, s;
      }
      if (t) return r(t, k);
      var u = function(e) {
        return r.call(this, e, k);
      };
      return u.source = "function(" + (n.variable || "obj") + "){\n" + o + "}", u;
    }, k.chain = function(e) {
      return k(e).chain();
    };
    var z = function(e) {
      return this._chain ? k(e).chain() : e;
    };
    k.mixin(k), N([ "pop", "push", "reverse", "shift", "sort", "splice", "unshift" ], function(e) {
      var t = r[e];
      k.prototype[e] = function() {
        var n = this._wrapped;
        return t.apply(n, arguments), "shift" != e && "splice" != e || 0 !== n.length || delete n[0], 
        z.call(this, n);
      };
    }), N([ "concat", "join", "slice" ], function(e) {
      var t = r[e];
      k.prototype[e] = function() {
        return z.call(this, t.apply(this._wrapped, arguments));
      };
    }), k.extend(k.prototype, {
      chain: function() {
        return this._chain = !0, this;
      },
      value: function() {
        return this._wrapped;
      }
    });
  }.call(this), n("underscore", function(e) {
    return function() {
      var t;
      return t || e._;
    };
  }(this));
  var r = function() {
    function e(e) {
      return null == e ? String(e) : J[G.call(e)] || "object";
    }
    function t(t) {
      return "function" == e(t);
    }
    function n(e) {
      return null != e && e == e.window;
    }
    function r(e) {
      return null != e && e.nodeType == e.DOCUMENT_NODE;
    }
    function i(t) {
      return "object" == e(t);
    }
    function a(e) {
      return i(e) && !n(e) && e.__proto__ == Object.prototype;
    }
    function o(e) {
      return e instanceof Array;
    }
    function s(e) {
      return "number" == typeof e.length;
    }
    function u(e) {
      return A.call(e, function(e) {
        return null != e;
      });
    }
    function l(e) {
      return e.length > 0 ? N.fn.concat.apply([], e) : e;
    }
    function c(e) {
      return e.replace(/::/g, "/").replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/_/g, "-").toLowerCase();
    }
    function f(e) {
      return e in P ? P[e] : P[e] = new RegExp("(^|\\s)" + e + "(\\s|$)");
    }
    function p(e, t) {
      return "number" != typeof t || L[c(e)] ? t : t + "px";
    }
    function d(e) {
      var t, n;
      return I[e] || (t = j.createElement(e), j.body.appendChild(t), n = R(t, "").getPropertyValue("display"), 
      t.parentNode.removeChild(t), "none" == n && (n = "block"), I[e] = n), I[e];
    }
    function h(e) {
      return "children" in e ? C.call(e.children) : N.map(e.childNodes, function(e) {
        return 1 == e.nodeType ? e : void 0;
      });
    }
    function m(e, t, n) {
      for (k in t) n && (a(t[k]) || o(t[k])) ? (a(t[k]) && !a(e[k]) && (e[k] = {}), o(t[k]) && !o(e[k]) && (e[k] = []), 
      m(e[k], t[k], n)) : t[k] !== _ && (e[k] = t[k]);
    }
    function g(e, t) {
      return t === _ ? N(e) : N(e).filter(t);
    }
    function v(e, n, r, i) {
      return t(n) ? n.call(e, r, i) : n;
    }
    function b(e, t, n) {
      null == n ? e.removeAttribute(t) : e.setAttribute(t, n);
    }
    function y(e, t) {
      var n = e.className, r = n && n.baseVal !== _;
      return t === _ ? r ? n.baseVal : n : (r ? n.baseVal = t : e.className = t, void 0);
    }
    function w(e) {
      var t;
      try {
        return e ? "true" == e || ("false" == e ? !1 : "null" == e ? null : isNaN(t = Number(e)) ? /^[\[\{]/.test(e) ? N.parseJSON(e) : e : t) : e;
      } catch (n) {
        return e;
      }
    }
    function x(e, t) {
      t(e);
      for (var n in e.childNodes) x(e.childNodes[n], t);
    }
    var _, k, N, E, T, S, O = [], C = O.slice, A = O.filter, j = window.document, I = {}, P = {}, R = j.defaultView.getComputedStyle, L = {
      "column-count": 1,
      columns: 1,
      "font-weight": 1,
      "line-height": 1,
      opacity: 1,
      "z-index": 1,
      zoom: 1
    }, M = /^\s*<(\w+|!)[^>]*>/, z = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, D = /^(?:body|html)$/i, F = [ "val", "css", "html", "text", "data", "width", "height", "offset" ], U = [ "after", "prepend", "before", "append" ], $ = j.createElement("table"), V = j.createElement("tr"), B = {
      tr: j.createElement("tbody"),
      tbody: $,
      thead: $,
      tfoot: $,
      td: V,
      th: V,
      "*": j.createElement("div")
    }, H = /complete|loaded|interactive/, q = /^\.([\w-]+)$/, X = /^#([\w-]*)$/, W = /^[\w-]+$/, J = {}, G = J.toString, K = {}, Z = j.createElement("div");
    return K.matches = function(e, t) {
      if (!e || 1 !== e.nodeType) return !1;
      var n = e.webkitMatchesSelector || e.mozMatchesSelector || e.oMatchesSelector || e.matchesSelector;
      if (n) return n.call(e, t);
      var r, i = e.parentNode, a = !i;
      return a && (i = Z).appendChild(e), r = ~K.qsa(i, t).indexOf(e), a && Z.removeChild(e), 
      r;
    }, T = function(e) {
      return e.replace(/-+(.)?/g, function(e, t) {
        return t ? t.toUpperCase() : "";
      });
    }, S = function(e) {
      return A.call(e, function(t, n) {
        return e.indexOf(t) == n;
      });
    }, K.fragment = function(e, t, n) {
      e.replace && (e = e.replace(z, "<$1></$2>")), t === _ && (t = M.test(e) && RegExp.$1), 
      t in B || (t = "*");
      var r, i, o = B[t];
      return o.innerHTML = "" + e, i = N.each(C.call(o.childNodes), function() {
        o.removeChild(this);
      }), a(n) && (r = N(i), N.each(n, function(e, t) {
        F.indexOf(e) > -1 ? r[e](t) : r.attr(e, t);
      })), i;
    }, K.Z = function(e, t) {
      return e = e || [], e.__proto__ = N.fn, e.selector = t || "", e;
    }, K.isZ = function(e) {
      return e instanceof K.Z;
    }, K.init = function(e, n) {
      if (e) {
        if (t(e)) return N(j).ready(e);
        if (K.isZ(e)) return e;
        var r;
        if (o(e)) r = u(e); else if (i(e)) r = [ a(e) ? N.extend({}, e) : e ], e = null; else if (M.test(e)) r = K.fragment(e.trim(), RegExp.$1, n), 
        e = null; else {
          if (n !== _) return N(n).find(e);
          r = K.qsa(j, e);
        }
        return K.Z(r, e);
      }
      return K.Z();
    }, N = function(e, t) {
      return K.init(e, t);
    }, N.extend = function(e) {
      var t, n = C.call(arguments, 1);
      return "boolean" == typeof e && (t = e, e = n.shift()), n.forEach(function(n) {
        m(e, n, t);
      }), e;
    }, K.qsa = function(e, t) {
      var n;
      return r(e) && X.test(t) ? (n = e.getElementById(RegExp.$1)) ? [ n ] : [] : 1 !== e.nodeType && 9 !== e.nodeType ? [] : C.call(q.test(t) ? e.getElementsByClassName(RegExp.$1) : W.test(t) ? e.getElementsByTagName(t) : e.querySelectorAll(t));
    }, N.contains = function(e, t) {
      return e !== t && e.contains(t);
    }, N.type = e, N.isFunction = t, N.isWindow = n, N.isArray = o, N.isPlainObject = a, 
    N.isEmptyObject = function(e) {
      var t;
      for (t in e) return !1;
      return !0;
    }, N.inArray = function(e, t, n) {
      return O.indexOf.call(t, e, n);
    }, N.camelCase = T, N.trim = function(e) {
      return e.trim();
    }, N.uuid = 0, N.support = {}, N.expr = {}, N.map = function(e, t) {
      var n, r, i, a = [];
      if (s(e)) for (r = 0; r < e.length; r++) n = t(e[r], r), null != n && a.push(n); else for (i in e) n = t(e[i], i), 
      null != n && a.push(n);
      return l(a);
    }, N.each = function(e, t) {
      var n, r;
      if (s(e)) {
        for (n = 0; n < e.length; n++) if (t.call(e[n], n, e[n]) === !1) return e;
      } else for (r in e) if (t.call(e[r], r, e[r]) === !1) return e;
      return e;
    }, N.grep = function(e, t) {
      return A.call(e, t);
    }, window.JSON && (N.parseJSON = JSON.parse), N.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {
      J["[object " + t + "]"] = t.toLowerCase();
    }), N.fn = {
      forEach: O.forEach,
      reduce: O.reduce,
      push: O.push,
      sort: O.sort,
      indexOf: O.indexOf,
      concat: O.concat,
      map: function(e) {
        return N(N.map(this, function(t, n) {
          return e.call(t, n, t);
        }));
      },
      slice: function() {
        return N(C.apply(this, arguments));
      },
      ready: function(e) {
        return H.test(j.readyState) ? e(N) : j.addEventListener("DOMContentLoaded", function() {
          e(N);
        }, !1), this;
      },
      get: function(e) {
        return e === _ ? C.call(this) : this[e >= 0 ? e : e + this.length];
      },
      toArray: function() {
        return this.get();
      },
      size: function() {
        return this.length;
      },
      remove: function() {
        return this.each(function() {
          null != this.parentNode && this.parentNode.removeChild(this);
        });
      },
      each: function(e) {
        return O.every.call(this, function(t, n) {
          return e.call(t, n, t) !== !1;
        }), this;
      },
      filter: function(e) {
        return t(e) ? this.not(this.not(e)) : N(A.call(this, function(t) {
          return K.matches(t, e);
        }));
      },
      add: function(e, t) {
        return N(S(this.concat(N(e, t))));
      },
      is: function(e) {
        return this.length > 0 && K.matches(this[0], e);
      },
      not: function(e) {
        var n = [];
        if (t(e) && e.call !== _) this.each(function(t) {
          e.call(this, t) || n.push(this);
        }); else {
          var r = "string" == typeof e ? this.filter(e) : s(e) && t(e.item) ? C.call(e) : N(e);
          this.forEach(function(e) {
            r.indexOf(e) < 0 && n.push(e);
          });
        }
        return N(n);
      },
      has: function(e) {
        return this.filter(function() {
          return i(e) ? N.contains(this, e) : N(this).find(e).size();
        });
      },
      eq: function(e) {
        return -1 === e ? this.slice(e) : this.slice(e, +e + 1);
      },
      first: function() {
        var e = this[0];
        return e && !i(e) ? e : N(e);
      },
      last: function() {
        var e = this[this.length - 1];
        return e && !i(e) ? e : N(e);
      },
      find: function(e) {
        var t, n = this;
        return t = "object" == typeof e ? N(e).filter(function() {
          var e = this;
          return O.some.call(n, function(t) {
            return N.contains(t, e);
          });
        }) : 1 == this.length ? N(K.qsa(this[0], e)) : this.map(function() {
          return K.qsa(this, e);
        });
      },
      closest: function(e, t) {
        var n = this[0], i = !1;
        for ("object" == typeof e && (i = N(e)); n && !(i ? i.indexOf(n) >= 0 : K.matches(n, e)); ) n = n !== t && !r(n) && n.parentNode;
        return N(n);
      },
      parents: function(e) {
        for (var t = [], n = this; n.length > 0; ) n = N.map(n, function(e) {
          return (e = e.parentNode) && !r(e) && t.indexOf(e) < 0 ? (t.push(e), e) : void 0;
        });
        return g(t, e);
      },
      parent: function(e) {
        return g(S(this.pluck("parentNode")), e);
      },
      children: function(e) {
        return g(this.map(function() {
          return h(this);
        }), e);
      },
      contents: function() {
        return this.map(function() {
          return C.call(this.childNodes);
        });
      },
      siblings: function(e) {
        return g(this.map(function(e, t) {
          return A.call(h(t.parentNode), function(e) {
            return e !== t;
          });
        }), e);
      },
      empty: function() {
        return this.each(function() {
          this.innerHTML = "";
        });
      },
      pluck: function(e) {
        return N.map(this, function(t) {
          return t[e];
        });
      },
      show: function() {
        return this.each(function() {
          "none" == this.style.display && (this.style.display = null), "none" == R(this, "").getPropertyValue("display") && (this.style.display = d(this.nodeName));
        });
      },
      replaceWith: function(e) {
        return this.before(e).remove();
      },
      wrap: function(e) {
        var n = t(e);
        if (this[0] && !n) var r = N(e).get(0), i = r.parentNode || this.length > 1;
        return this.each(function(t) {
          N(this).wrapAll(n ? e.call(this, t) : i ? r.cloneNode(!0) : r);
        });
      },
      wrapAll: function(e) {
        if (this[0]) {
          N(this[0]).before(e = N(e));
          for (var t; (t = e.children()).length; ) e = t.first();
          N(e).append(this);
        }
        return this;
      },
      wrapInner: function(e) {
        var n = t(e);
        return this.each(function(t) {
          var r = N(this), i = r.contents(), a = n ? e.call(this, t) : e;
          i.length ? i.wrapAll(a) : r.append(a);
        });
      },
      unwrap: function() {
        return this.parent().each(function() {
          N(this).replaceWith(N(this).children());
        }), this;
      },
      clone: function() {
        return this.map(function() {
          return this.cloneNode(!0);
        });
      },
      hide: function() {
        return this.css("display", "none");
      },
      toggle: function(e) {
        return this.each(function() {
          var t = N(this);
          (e === _ ? "none" == t.css("display") : e) ? t.show() : t.hide();
        });
      },
      prev: function(e) {
        return N(this.pluck("previousElementSibling")).filter(e || "*");
      },
      next: function(e) {
        return N(this.pluck("nextElementSibling")).filter(e || "*");
      },
      html: function(e) {
        return e === _ ? this.length > 0 ? this[0].innerHTML : null : this.each(function(t) {
          var n = this.innerHTML;
          N(this).empty().append(v(this, e, t, n));
        });
      },
      text: function(e) {
        return e === _ ? this.length > 0 ? this[0].textContent : null : this.each(function() {
          this.textContent = e;
        });
      },
      attr: function(e, t) {
        var n;
        return "string" == typeof e && t === _ ? 0 == this.length || 1 !== this[0].nodeType ? _ : "value" == e && "INPUT" == this[0].nodeName ? this.val() : !(n = this[0].getAttribute(e)) && e in this[0] ? this[0][e] : n : this.each(function(n) {
          if (1 === this.nodeType) if (i(e)) for (k in e) b(this, k, e[k]); else b(this, e, v(this, t, n, this.getAttribute(e)));
        });
      },
      removeAttr: function(e) {
        return this.each(function() {
          1 === this.nodeType && b(this, e);
        });
      },
      prop: function(e, t) {
        return t === _ ? this[0] && this[0][e] : this.each(function(n) {
          this[e] = v(this, t, n, this[e]);
        });
      },
      data: function(e, t) {
        var n = this.attr("data-" + c(e), t);
        return null !== n ? w(n) : _;
      },
      val: function(e) {
        return e === _ ? this[0] && (this[0].multiple ? N(this[0]).find("option").filter(function() {
          return this.selected;
        }).pluck("value") : this[0].value) : this.each(function(t) {
          this.value = v(this, e, t, this.value);
        });
      },
      offset: function(e) {
        if (e) return this.each(function(t) {
          var n = N(this), r = v(this, e, t, n.offset()), i = n.offsetParent().offset(), a = {
            top: r.top - i.top,
            left: r.left - i.left
          };
          "static" == n.css("position") && (a.position = "relative"), n.css(a);
        });
        if (0 == this.length) return null;
        var t = this[0].getBoundingClientRect();
        return {
          left: t.left + window.pageXOffset,
          top: t.top + window.pageYOffset,
          width: Math.round(t.width),
          height: Math.round(t.height)
        };
      },
      css: function(t, n) {
        if (arguments.length < 2 && "string" == typeof t) return this[0] && (this[0].style[T(t)] || R(this[0], "").getPropertyValue(t));
        var r = "";
        if ("string" == e(t)) n || 0 === n ? r = c(t) + ":" + p(t, n) : this.each(function() {
          this.style.removeProperty(c(t));
        }); else for (k in t) t[k] || 0 === t[k] ? r += c(k) + ":" + p(k, t[k]) + ";" : this.each(function() {
          this.style.removeProperty(c(k));
        });
        return this.each(function() {
          this.style.cssText += ";" + r;
        });
      },
      index: function(e) {
        return e ? this.indexOf(N(e)[0]) : this.parent().children().indexOf(this[0]);
      },
      hasClass: function(e) {
        return O.some.call(this, function(e) {
          return this.test(y(e));
        }, f(e));
      },
      addClass: function(e) {
        return this.each(function(t) {
          E = [];
          var n = y(this), r = v(this, e, t, n);
          r.split(/\s+/g).forEach(function(e) {
            N(this).hasClass(e) || E.push(e);
          }, this), E.length && y(this, n + (n ? " " : "") + E.join(" "));
        });
      },
      removeClass: function(e) {
        return this.each(function(t) {
          return e === _ ? y(this, "") : (E = y(this), v(this, e, t, E).split(/\s+/g).forEach(function(e) {
            E = E.replace(f(e), " ");
          }), y(this, E.trim()), void 0);
        });
      },
      toggleClass: function(e, t) {
        return this.each(function(n) {
          var r = N(this), i = v(this, e, n, y(this));
          i.split(/\s+/g).forEach(function(e) {
            (t === _ ? !r.hasClass(e) : t) ? r.addClass(e) : r.removeClass(e);
          });
        });
      },
      scrollTop: function() {
        return this.length ? "scrollTop" in this[0] ? this[0].scrollTop : this[0].scrollY : void 0;
      },
      position: function() {
        if (this.length) {
          var e = this[0], t = this.offsetParent(), n = this.offset(), r = D.test(t[0].nodeName) ? {
            top: 0,
            left: 0
          } : t.offset();
          return n.top -= parseFloat(N(e).css("margin-top")) || 0, n.left -= parseFloat(N(e).css("margin-left")) || 0, 
          r.top += parseFloat(N(t[0]).css("border-top-width")) || 0, r.left += parseFloat(N(t[0]).css("border-left-width")) || 0, 
          {
            top: n.top - r.top,
            left: n.left - r.left
          };
        }
      },
      offsetParent: function() {
        return this.map(function() {
          for (var e = this.offsetParent || j.body; e && !D.test(e.nodeName) && "static" == N(e).css("position"); ) e = e.offsetParent;
          return e;
        });
      }
    }, N.fn.detach = N.fn.remove, [ "width", "height" ].forEach(function(e) {
      N.fn[e] = function(t) {
        var i, a = this[0], o = e.replace(/./, function(e) {
          return e[0].toUpperCase();
        });
        return t === _ ? n(a) ? a["inner" + o] : r(a) ? a.documentElement["offset" + o] : (i = this.offset()) && i[e] : this.each(function(n) {
          a = N(this), a.css(e, v(this, t, n, a[e]()));
        });
      };
    }), U.forEach(function(t, n) {
      var r = n % 2;
      N.fn[t] = function() {
        var t, i, a = N.map(arguments, function(n) {
          return t = e(n), "object" == t || "array" == t || null == n ? n : K.fragment(n);
        }), o = this.length > 1;
        return a.length < 1 ? this : this.each(function(e, t) {
          i = r ? t : t.parentNode, t = 0 == n ? t.nextSibling : 1 == n ? t.firstChild : 2 == n ? t : null, 
          a.forEach(function(e) {
            if (o) e = e.cloneNode(!0); else if (!i) return N(e).remove();
            x(i.insertBefore(e, t), function(e) {
              null == e.nodeName || "SCRIPT" !== e.nodeName.toUpperCase() || e.type && "text/javascript" !== e.type || e.src || window.eval.call(window, e.innerHTML);
            });
          });
        });
      }, N.fn[r ? t + "To" : "insert" + (n ? "Before" : "After")] = function(e) {
        return N(e)[t](this), this;
      };
    }), K.Z.prototype = N.fn, K.uniq = S, K.deserializeValue = w, N.zepto = K, N;
  }();
  window.Zepto = r, "$" in window || (window.$ = r), function(e) {
    function t(e) {
      return e._zid || (e._zid = d++);
    }
    function n(e, n, a, o) {
      if (n = r(n), n.ns) var s = i(n.ns);
      return (p[t(e)] || []).filter(function(e) {
        return !(!e || n.e && e.e != n.e || n.ns && !s.test(e.ns) || a && t(e.fn) !== t(a) || o && e.sel != o);
      });
    }
    function r(e) {
      var t = ("" + e).split(".");
      return {
        e: t[0],
        ns: t.slice(1).sort().join(" ")
      };
    }
    function i(e) {
      return new RegExp("(?:^| )" + e.replace(" ", " .* ?") + "(?: |$)");
    }
    function a(t, n, r) {
      "string" != e.type(t) ? e.each(t, r) : t.split(/\s/).forEach(function(e) {
        r(e, n);
      });
    }
    function o(e, t) {
      return e.del && ("focus" == e.e || "blur" == e.e) || !!t;
    }
    function s(e) {
      return m[e] || e;
    }
    function u(n, i, u, l, c, f) {
      var d = t(n), h = p[d] || (p[d] = []);
      a(i, u, function(t, i) {
        var a = r(t);
        a.fn = i, a.sel = l, a.e in m && (i = function(t) {
          var n = t.relatedTarget;
          return !n || n !== this && !e.contains(this, n) ? a.fn.apply(this, arguments) : void 0;
        }), a.del = c && c(i, t);
        var u = a.del || i;
        a.proxy = function(e) {
          var t = u.apply(n, [ e ].concat(e.data));
          return t === !1 && (e.preventDefault(), e.stopPropagation()), t;
        }, a.i = h.length, h.push(a), n.addEventListener(s(a.e), a.proxy, o(a, f));
      });
    }
    function l(e, r, i, u, l) {
      var c = t(e);
      a(r || "", i, function(t, r) {
        n(e, t, r, u).forEach(function(t) {
          delete p[c][t.i], e.removeEventListener(s(t.e), t.proxy, o(t, l));
        });
      });
    }
    function c(t) {
      var n, r = {
        originalEvent: t
      };
      for (n in t) b.test(n) || void 0 === t[n] || (r[n] = t[n]);
      return e.each(y, function(e, n) {
        r[e] = function() {
          return this[n] = g, t[e].apply(t, arguments);
        }, r[n] = v;
      }), r;
    }
    function f(e) {
      if (!("defaultPrevented" in e)) {
        e.defaultPrevented = !1;
        var t = e.preventDefault;
        e.preventDefault = function() {
          this.defaultPrevented = !0, t.call(this);
        };
      }
    }
    var p = (e.zepto.qsa, {}), d = 1, h = {}, m = {
      mouseenter: "mouseover",
      mouseleave: "mouseout"
    };
    h.click = h.mousedown = h.mouseup = h.mousemove = "MouseEvents", e.event = {
      add: u,
      remove: l
    }, e.proxy = function(n, r) {
      if (e.isFunction(n)) {
        var i = function() {
          return n.apply(r, arguments);
        };
        return i._zid = t(n), i;
      }
      if ("string" == typeof r) return e.proxy(n[r], n);
      throw new TypeError("expected function");
    }, e.fn.bind = function(e, t) {
      return this.each(function() {
        u(this, e, t);
      });
    }, e.fn.unbind = function(e, t) {
      return this.each(function() {
        l(this, e, t);
      });
    }, e.fn.one = function(e, t) {
      return this.each(function(n, r) {
        u(this, e, t, null, function(e, t) {
          return function() {
            var n = e.apply(r, arguments);
            return l(r, t, e), n;
          };
        });
      });
    };
    var g = function() {
      return !0;
    }, v = function() {
      return !1;
    }, b = /^([A-Z]|layer[XY]$)/, y = {
      preventDefault: "isDefaultPrevented",
      stopImmediatePropagation: "isImmediatePropagationStopped",
      stopPropagation: "isPropagationStopped"
    };
    e.fn.delegate = function(t, n, r) {
      return this.each(function(i, a) {
        u(a, n, r, t, function(n) {
          return function(r) {
            var i, o = e(r.target).closest(t, a).get(0);
            return o ? (i = e.extend(c(r), {
              currentTarget: o,
              liveFired: a
            }), n.apply(o, [ i ].concat([].slice.call(arguments, 1)))) : void 0;
          };
        });
      });
    }, e.fn.undelegate = function(e, t, n) {
      return this.each(function() {
        l(this, t, n, e);
      });
    }, e.fn.live = function(t, n) {
      return e(document.body).delegate(this.selector, t, n), this;
    }, e.fn.die = function(t, n) {
      return e(document.body).undelegate(this.selector, t, n), this;
    }, e.fn.on = function(t, n, r) {
      return !n || e.isFunction(n) ? this.bind(t, n || r) : this.delegate(n, t, r);
    }, e.fn.off = function(t, n, r) {
      return !n || e.isFunction(n) ? this.unbind(t, n || r) : this.undelegate(n, t, r);
    }, e.fn.trigger = function(t, n) {
      return ("string" == typeof t || e.isPlainObject(t)) && (t = e.Event(t)), f(t), t.data = n, 
      this.each(function() {
        "dispatchEvent" in this && this.dispatchEvent(t);
      });
    }, e.fn.triggerHandler = function(t, r) {
      var i, a;
      return this.each(function(o, s) {
        i = c("string" == typeof t ? e.Event(t) : t), i.data = r, i.target = s, e.each(n(s, t.type || t), function(e, t) {
          return a = t.proxy(i), i.isImmediatePropagationStopped() ? !1 : void 0;
        });
      }), a;
    }, "focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t) {
      e.fn[t] = function(e) {
        return e ? this.bind(t, e) : this.trigger(t);
      };
    }), [ "focus", "blur" ].forEach(function(t) {
      e.fn[t] = function(e) {
        return e ? this.bind(t, e) : this.each(function() {
          try {
            this[t]();
          } catch (e) {}
        }), this;
      };
    }), e.Event = function(e, t) {
      "string" != typeof e && (t = e, e = t.type);
      var n = document.createEvent(h[e] || "Events"), r = !0;
      if (t) for (var i in t) "bubbles" == i ? r = !!t[i] : n[i] = t[i];
      return n.initEvent(e, r, !0, null, null, null, null, null, null, null, null, null, null, null, null), 
      n.isDefaultPrevented = function() {
        return this.defaultPrevented;
      }, n;
    };
  }(r), function(e, t) {
    function n(e) {
      return r(e.replace(/([a-z])([A-Z])/, "$1-$2"));
    }
    function r(e) {
      return e.toLowerCase();
    }
    function i(e) {
      return a ? a + e : r(e);
    }
    var a, o, s, u, l, c, f, p, d = "", h = {
      Webkit: "webkit",
      Moz: "",
      O: "o",
      ms: "MS"
    }, m = window.document, g = m.createElement("div"), v = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i, b = {};
    e.each(h, function(e, n) {
      return g.style[e + "TransitionProperty"] !== t ? (d = "-" + r(e) + "-", a = n, !1) : void 0;
    }), o = d + "transform", b[s = d + "transition-property"] = b[u = d + "transition-duration"] = b[l = d + "transition-timing-function"] = b[c = d + "animation-name"] = b[f = d + "animation-duration"] = b[p = d + "animation-timing-function"] = "", 
    e.fx = {
      off: a === t && g.style.transitionProperty === t,
      speeds: {
        _default: 400,
        fast: 200,
        slow: 600
      },
      cssPrefix: d,
      transitionEnd: i("TransitionEnd"),
      animationEnd: i("AnimationEnd")
    }, e.fn.animate = function(t, n, r, i) {
      return e.isPlainObject(n) && (r = n.easing, i = n.complete, n = n.duration), n && (n = ("number" == typeof n ? n : e.fx.speeds[n] || e.fx.speeds._default) / 1e3), 
      this.anim(t, n, r, i);
    }, e.fn.anim = function(r, i, a, d) {
      var h, m, g, y = {}, w = "", x = this, _ = e.fx.transitionEnd;
      if (i === t && (i = .4), e.fx.off && (i = 0), "string" == typeof r) y[c] = r, y[f] = i + "s", 
      y[p] = a || "linear", _ = e.fx.animationEnd; else {
        m = [];
        for (h in r) v.test(h) ? w += h + "(" + r[h] + ") " : (y[h] = r[h], m.push(n(h)));
        w && (y[o] = w, m.push(o)), i > 0 && "object" == typeof r && (y[s] = m.join(", "), 
        y[u] = i + "s", y[l] = a || "linear");
      }
      return g = function(t) {
        if ("undefined" != typeof t) {
          if (t.target !== t.currentTarget) return;
          e(t.target).unbind(_, g);
        }
        e(this).css(b), d && d.call(this);
      }, i > 0 && this.bind(_, g), this.size() && this.get(0).clientLeft, this.css(y), 
      0 >= i && setTimeout(function() {
        x.each(function() {
          g.call(this);
        });
      }, 0), this;
    }, g = null;
  }(r), function(e) {
    function t(t, n, r) {
      var i = e.Event(n);
      return e(t).trigger(i, r), !i.defaultPrevented;
    }
    function n(e, n, r, i) {
      return e.global ? t(n || b, r, i) : void 0;
    }
    function r(t) {
      t.global && 0 === e.active++ && n(t, null, "ajaxStart");
    }
    function i(t) {
      t.global && !--e.active && n(t, null, "ajaxStop");
    }
    function a(e, t) {
      var r = t.context;
      return t.beforeSend.call(r, e, t) === !1 || n(t, r, "ajaxBeforeSend", [ e, t ]) === !1 ? !1 : (n(t, r, "ajaxSend", [ e, t ]), 
      void 0);
    }
    function o(e, t, r) {
      var i = r.context, a = "success";
      r.success.call(i, e, a, t), n(r, i, "ajaxSuccess", [ t, r, e ]), u(a, t, r);
    }
    function s(e, t, r, i) {
      var a = i.context;
      i.error.call(a, r, t, e), n(i, a, "ajaxError", [ r, i, e ]), u(t, r, i);
    }
    function u(e, t, r) {
      var a = r.context;
      r.complete.call(a, t, e), n(r, a, "ajaxComplete", [ t, r ]), i(r);
    }
    function l() {}
    function c(e) {
      return e && (e = e.split(";", 2)[0]), e && (e == k ? "html" : e == _ ? "json" : w.test(e) ? "script" : x.test(e) && "xml") || "text";
    }
    function f(e, t) {
      return (e + "&" + t).replace(/[&?]{1,2}/, "?");
    }
    function p(t) {
      t.processData && t.data && "string" != e.type(t.data) && (t.data = e.param(t.data, t.traditional)), 
      !t.data || t.type && "GET" != t.type.toUpperCase() || (t.url = f(t.url, t.data));
    }
    function d(t, n, r, i) {
      var a = !e.isFunction(n);
      return {
        url: t,
        data: a ? n : void 0,
        success: a ? e.isFunction(r) ? r : void 0 : n,
        dataType: a ? i || r : r
      };
    }
    function h(t, n, r, i) {
      var a, o = e.isArray(n);
      e.each(n, function(n, s) {
        a = e.type(s), i && (n = r ? i : i + "[" + (o ? "" : n) + "]"), !i && o ? t.add(s.name, s.value) : "array" == a || !r && "object" == a ? h(t, s, r, n) : t.add(n, s);
      });
    }
    var m, g, v = 0, b = window.document, y = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, w = /^(?:text|application)\/javascript/i, x = /^(?:text|application)\/xml/i, _ = "application/json", k = "text/html", N = /^\s*$/;
    e.active = 0, e.ajaxJSONP = function(t) {
      if (!("type" in t)) return e.ajax(t);
      var n, r = "jsonp" + ++v, i = b.createElement("script"), u = function() {
        clearTimeout(n), e(i).remove(), delete window[r];
      }, c = function(e) {
        u(), e && "timeout" != e || (window[r] = l), s(null, e || "abort", f, t);
      }, f = {
        abort: c
      };
      return a(f, t) === !1 ? (c("abort"), !1) : (window[r] = function(e) {
        u(), o(e, f, t);
      }, i.onerror = function() {
        c("error");
      }, i.src = t.url.replace(/=\?/, "=" + r), e("head").append(i), t.timeout > 0 && (n = setTimeout(function() {
        c("timeout");
      }, t.timeout)), f);
    }, e.ajaxSettings = {
      type: "GET",
      beforeSend: l,
      success: l,
      error: l,
      complete: l,
      context: null,
      global: !0,
      xhr: function() {
        return new window.XMLHttpRequest();
      },
      accepts: {
        script: "text/javascript, application/javascript",
        json: _,
        xml: "application/xml, text/xml",
        html: k,
        text: "text/plain"
      },
      crossDomain: !1,
      timeout: 0,
      processData: !0,
      cache: !0
    }, e.ajax = function(t) {
      var n = e.extend({}, t || {});
      for (m in e.ajaxSettings) void 0 === n[m] && (n[m] = e.ajaxSettings[m]);
      r(n), n.crossDomain || (n.crossDomain = /^([\w-]+:)?\/\/([^\/]+)/.test(n.url) && RegExp.$2 != window.location.host), 
      n.url || (n.url = window.location.toString()), p(n), n.cache === !1 && (n.url = f(n.url, "_=" + Date.now()));
      var i = n.dataType, u = /=\?/.test(n.url);
      if ("jsonp" == i || u) return u || (n.url = f(n.url, "callback=?")), e.ajaxJSONP(n);
      var d, h = n.accepts[i], v = {}, b = /^([\w-]+:)\/\//.test(n.url) ? RegExp.$1 : window.location.protocol, y = n.xhr();
      n.crossDomain || (v["X-Requested-With"] = "XMLHttpRequest"), h && (v.Accept = h, 
      h.indexOf(",") > -1 && (h = h.split(",", 2)[0]), y.overrideMimeType && y.overrideMimeType(h)), 
      (n.contentType || n.contentType !== !1 && n.data && "GET" != n.type.toUpperCase()) && (v["Content-Type"] = n.contentType || "application/x-www-form-urlencoded"), 
      n.headers = e.extend(v, n.headers || {}), y.onreadystatechange = function() {
        if (4 == y.readyState) {
          y.onreadystatechange = l, clearTimeout(d);
          var t, r = !1;
          if (y.status >= 200 && y.status < 300 || 304 == y.status || 0 == y.status && "file:" == b) {
            i = i || c(y.getResponseHeader("content-type")), t = y.responseText;
            try {
              "script" == i ? (1, eval)(t) : "xml" == i ? t = y.responseXML : "json" == i && (t = N.test(t) ? null : e.parseJSON(t));
            } catch (a) {
              r = a;
            }
            r ? s(r, "parsererror", y, n) : o(t, y, n);
          } else s(null, y.status ? "error" : "abort", y, n);
        }
      };
      var w = "async" in n ? n.async : !0;
      y.open(n.type, n.url, w);
      for (g in n.headers) y.setRequestHeader(g, n.headers[g]);
      return a(y, n) === !1 ? (y.abort(), !1) : (n.timeout > 0 && (d = setTimeout(function() {
        y.onreadystatechange = l, y.abort(), s(null, "timeout", y, n);
      }, n.timeout)), y.send(n.data ? n.data : null), y);
    }, e.get = function() {
      return e.ajax(d.apply(null, arguments));
    }, e.post = function() {
      var t = d.apply(null, arguments);
      return t.type = "POST", e.ajax(t);
    }, e.getJSON = function() {
      var t = d.apply(null, arguments);
      return t.dataType = "json", e.ajax(t);
    }, e.fn.load = function(t, n, r) {
      if (!this.length) return this;
      var i, a = this, o = t.split(/\s/), s = d(t, n, r), u = s.success;
      return o.length > 1 && (s.url = o[0], i = o[1]), s.success = function(t) {
        a.html(i ? e("<div>").html(t.replace(y, "")).find(i) : t), u && u.apply(a, arguments);
      }, e.ajax(s), this;
    };
    var E = encodeURIComponent;
    e.param = function(e, t) {
      var n = [];
      return n.add = function(e, t) {
        this.push(E(e) + "=" + E(t));
      }, h(n, e, t), n.join("&").replace(/%20/g, "+");
    };
  }(r), function(e) {
    function t(e) {
      return "tagName" in e ? e : e.parentNode;
    }
    function n(e, t, n, r) {
      var i = Math.abs(e - t), a = Math.abs(n - r);
      return i >= a ? e - t > 0 ? "Left" : "Right" : n - r > 0 ? "Up" : "Down";
    }
    function r() {
      l = null, c.last && (c.el.trigger("longTap"), c = {});
    }
    function i() {
      l && clearTimeout(l), l = null;
    }
    function a() {
      o && clearTimeout(o), s && clearTimeout(s), u && clearTimeout(u), l && clearTimeout(l), 
      o = s = u = l = null, c = {};
    }
    var o, s, u, l, c = {}, f = 750;
    e(document).ready(function() {
      var p, d;
      e(document.body).bind("touchstart", function(n) {
        p = Date.now(), d = p - (c.last || p), c.el = e(t(n.touches[0].target)), o && clearTimeout(o), 
        c.x1 = n.touches[0].pageX, c.y1 = n.touches[0].pageY, d > 0 && 250 >= d && (c.isDoubleTap = !0), 
        c.last = p, l = setTimeout(r, f);
      }).bind("touchmove", function(e) {
        i(), c.x2 = e.touches[0].pageX, c.y2 = e.touches[0].pageY, Math.abs(c.x1 - c.x2) > 10 && e.preventDefault();
      }).bind("touchend", function() {
        i(), c.x2 && Math.abs(c.x1 - c.x2) > 30 || c.y2 && Math.abs(c.y1 - c.y2) > 30 ? u = setTimeout(function() {
          c.el && (c.el.trigger("swipe"), c.el.trigger("swipe" + n(c.x1, c.x2, c.y1, c.y2))), 
          c = {};
        }, 0) : "last" in c && (s = setTimeout(function() {
          var t = e.Event("tap");
          t.cancelTouch = a, c.el.trigger(t), c.isDoubleTap ? (c.el.trigger("doubleTap"), 
          c = {}) : o = setTimeout(function() {
            o = null, c.el.trigger("singleTap"), c = {};
          }, 250);
        }, 0));
      }).bind("touchcancel", a), e(window).bind("scroll", a);
    }), [ "swipe", "swipeLeft", "swipeRight", "swipeUp", "swipeDown", "doubleTap", "tap", "singleTap", "longTap" ].forEach(function(t) {
      e.fn[t] = function(e) {
        return this.bind(t, e);
      };
    });
  }(r), n("zepto", function(e) {
    return function() {
      var t;
      return t || e.$;
    };
  }(this)), function() {
    var e, n = this, r = n.Backbone, i = [], a = i.push, o = i.slice, s = i.splice;
    e = "undefined" != typeof exports ? exports : n.Backbone = {}, e.VERSION = "1.0.0";
    var u = n._;
    u || "undefined" == typeof t || (u = t("underscore")), e.$ = n.jQuery || n.Zepto || n.ender || n.$, 
    e.noConflict = function() {
      return n.Backbone = r, this;
    }, e.emulateHTTP = !1, e.emulateJSON = !1;
    var l = e.Events = {
      on: function(e, t, n) {
        if (!f(this, "on", e, [ t, n ]) || !t) return this;
        this._events || (this._events = {});
        var r = this._events[e] || (this._events[e] = []);
        return r.push({
          callback: t,
          context: n,
          ctx: n || this
        }), this;
      },
      once: function(e, t, n) {
        if (!f(this, "once", e, [ t, n ]) || !t) return this;
        var r = this, i = u.once(function() {
          r.off(e, i), t.apply(this, arguments);
        });
        return i._callback = t, this.on(e, i, n);
      },
      off: function(e, t, n) {
        var r, i, a, o, s, l, c, p;
        if (!this._events || !f(this, "off", e, [ t, n ])) return this;
        if (!e && !t && !n) return this._events = {}, this;
        for (o = e ? [ e ] : u.keys(this._events), s = 0, l = o.length; l > s; s++) if (e = o[s], 
        a = this._events[e]) {
          if (this._events[e] = r = [], t || n) for (c = 0, p = a.length; p > c; c++) i = a[c], 
          (t && t !== i.callback && t !== i.callback._callback || n && n !== i.context) && r.push(i);
          r.length || delete this._events[e];
        }
        return this;
      },
      trigger: function(e) {
        if (!this._events) return this;
        var t = o.call(arguments, 1);
        if (!f(this, "trigger", e, t)) return this;
        var n = this._events[e], r = this._events.all;
        return n && p(n, t), r && p(r, arguments), this;
      },
      stopListening: function(e, t, n) {
        var r = this._listeners;
        if (!r) return this;
        var i = !t && !n;
        "object" == typeof t && (n = this), e && ((r = {})[e._listenerId] = e);
        for (var a in r) r[a].off(t, n, this), i && delete this._listeners[a];
        return this;
      }
    }, c = /\s+/, f = function(e, t, n, r) {
      if (!n) return !0;
      if ("object" == typeof n) {
        for (var i in n) e[t].apply(e, [ i, n[i] ].concat(r));
        return !1;
      }
      if (c.test(n)) {
        for (var a = n.split(c), o = 0, s = a.length; s > o; o++) e[t].apply(e, [ a[o] ].concat(r));
        return !1;
      }
      return !0;
    }, p = function(e, t) {
      var n, r = -1, i = e.length, a = t[0], o = t[1], s = t[2];
      switch (t.length) {
       case 0:
        for (;++r < i; ) (n = e[r]).callback.call(n.ctx);
        return;

       case 1:
        for (;++r < i; ) (n = e[r]).callback.call(n.ctx, a);
        return;

       case 2:
        for (;++r < i; ) (n = e[r]).callback.call(n.ctx, a, o);
        return;

       case 3:
        for (;++r < i; ) (n = e[r]).callback.call(n.ctx, a, o, s);
        return;

       default:
        for (;++r < i; ) (n = e[r]).callback.apply(n.ctx, t);
      }
    }, d = {
      listenTo: "on",
      listenToOnce: "once"
    };
    u.each(d, function(e, t) {
      l[t] = function(t, n, r) {
        var i = this._listeners || (this._listeners = {}), a = t._listenerId || (t._listenerId = u.uniqueId("l"));
        return i[a] = t, "object" == typeof n && (r = this), t[e](n, r, this), this;
      };
    }), l.bind = l.on, l.unbind = l.off, u.extend(e, l);
    var h = e.Model = function(e, t) {
      var n, r = e || {};
      t || (t = {}), this.cid = u.uniqueId("c"), this.attributes = {}, u.extend(this, u.pick(t, m)), 
      t.parse && (r = this.parse(r, t) || {}), (n = u.result(this, "defaults")) && (r = u.defaults({}, r, n)), 
      this.set(r, t), this.changed = {}, this.initialize.apply(this, arguments);
    }, m = [ "url", "urlRoot", "collection" ];
    u.extend(h.prototype, l, {
      changed: null,
      validationError: null,
      idAttribute: "id",
      initialize: function() {},
      toJSON: function() {
        return u.clone(this.attributes);
      },
      sync: function() {
        return e.sync.apply(this, arguments);
      },
      get: function(e) {
        return this.attributes[e];
      },
      escape: function(e) {
        return u.escape(this.get(e));
      },
      has: function(e) {
        return null != this.get(e);
      },
      set: function(e, t, n) {
        var r, i, a, o, s, l, c, f;
        if (null == e) return this;
        if ("object" == typeof e ? (i = e, n = t) : (i = {})[e] = t, n || (n = {}), !this._validate(i, n)) return !1;
        a = n.unset, s = n.silent, o = [], l = this._changing, this._changing = !0, l || (this._previousAttributes = u.clone(this.attributes), 
        this.changed = {}), f = this.attributes, c = this._previousAttributes, this.idAttribute in i && (this.id = i[this.idAttribute]);
        for (r in i) t = i[r], u.isEqual(f[r], t) || o.push(r), u.isEqual(c[r], t) ? delete this.changed[r] : this.changed[r] = t, 
        a ? delete f[r] : f[r] = t;
        if (!s) {
          o.length && (this._pending = !0);
          for (var p = 0, d = o.length; d > p; p++) this.trigger("change:" + o[p], this, f[o[p]], n);
        }
        if (l) return this;
        if (!s) for (;this._pending; ) this._pending = !1, this.trigger("change", this, n);
        return this._pending = !1, this._changing = !1, this;
      },
      unset: function(e, t) {
        return this.set(e, void 0, u.extend({}, t, {
          unset: !0
        }));
      },
      clear: function(e) {
        var t = {};
        for (var n in this.attributes) t[n] = void 0;
        return this.set(t, u.extend({}, e, {
          unset: !0
        }));
      },
      hasChanged: function(e) {
        return null == e ? !u.isEmpty(this.changed) : u.has(this.changed, e);
      },
      changedAttributes: function(e) {
        if (!e) return this.hasChanged() ? u.clone(this.changed) : !1;
        var t, n = !1, r = this._changing ? this._previousAttributes : this.attributes;
        for (var i in e) u.isEqual(r[i], t = e[i]) || ((n || (n = {}))[i] = t);
        return n;
      },
      previous: function(e) {
        return null != e && this._previousAttributes ? this._previousAttributes[e] : null;
      },
      previousAttributes: function() {
        return u.clone(this._previousAttributes);
      },
      fetch: function(e) {
        e = e ? u.clone(e) : {}, void 0 === e.parse && (e.parse = !0);
        var t = this, n = e.success;
        return e.success = function(r) {
          return t.set(t.parse(r, e), e) ? (n && n(t, r, e), t.trigger("sync", t, r, e), void 0) : !1;
        }, D(this, e), this.sync("read", this, e);
      },
      save: function(e, t, n) {
        var r, i, a, o = this.attributes;
        if (null == e || "object" == typeof e ? (r = e, n = t) : (r = {})[e] = t, !(!r || n && n.wait || this.set(r, n))) return !1;
        if (n = u.extend({
          validate: !0
        }, n), !this._validate(r, n)) return !1;
        r && n.wait && (this.attributes = u.extend({}, o, r)), void 0 === n.parse && (n.parse = !0);
        var s = this, l = n.success;
        return n.success = function(e) {
          s.attributes = o;
          var t = s.parse(e, n);
          return n.wait && (t = u.extend(r || {}, t)), u.isObject(t) && !s.set(t, n) ? !1 : (l && l(s, e, n), 
          s.trigger("sync", s, e, n), void 0);
        }, D(this, n), i = this.isNew() ? "create" : n.patch ? "patch" : "update", "patch" === i && (n.attrs = r), 
        a = this.sync(i, this, n), r && n.wait && (this.attributes = o), a;
      },
      destroy: function(e) {
        e = e ? u.clone(e) : {};
        var t = this, n = e.success, r = function() {
          t.trigger("destroy", t, t.collection, e);
        };
        if (e.success = function(i) {
          (e.wait || t.isNew()) && r(), n && n(t, i, e), t.isNew() || t.trigger("sync", t, i, e);
        }, this.isNew()) return e.success(), !1;
        D(this, e);
        var i = this.sync("delete", this, e);
        return e.wait || r(), i;
      },
      url: function() {
        var e = u.result(this, "urlRoot") || u.result(this.collection, "url") || z();
        return this.isNew() ? e : e + ("/" === e.charAt(e.length - 1) ? "" : "/") + encodeURIComponent(this.id);
      },
      parse: function(e) {
        return e;
      },
      clone: function() {
        return new this.constructor(this.attributes);
      },
      isNew: function() {
        return null == this.id;
      },
      isValid: function(e) {
        return this._validate({}, u.extend(e || {}, {
          validate: !0
        }));
      },
      _validate: function(e, t) {
        if (!t.validate || !this.validate) return !0;
        e = u.extend({}, this.attributes, e);
        var n = this.validationError = this.validate(e, t) || null;
        return n ? (this.trigger("invalid", this, n, u.extend(t || {}, {
          validationError: n
        })), !1) : !0;
      }
    });
    var g = [ "keys", "values", "pairs", "invert", "pick", "omit" ];
    u.each(g, function(e) {
      h.prototype[e] = function() {
        var t = o.call(arguments);
        return t.unshift(this.attributes), u[e].apply(u, t);
      };
    });
    var v = e.Collection = function(e, t) {
      t || (t = {}), t.url && (this.url = t.url), t.model && (this.model = t.model), void 0 !== t.comparator && (this.comparator = t.comparator), 
      this._reset(), this.initialize.apply(this, arguments), e && this.reset(e, u.extend({
        silent: !0
      }, t));
    }, b = {
      add: !0,
      remove: !0,
      merge: !0
    }, y = {
      add: !0,
      merge: !1,
      remove: !1
    };
    u.extend(v.prototype, l, {
      model: h,
      initialize: function() {},
      toJSON: function(e) {
        return this.map(function(t) {
          return t.toJSON(e);
        });
      },
      sync: function() {
        return e.sync.apply(this, arguments);
      },
      add: function(e, t) {
        return this.set(e, u.defaults(t || {}, y));
      },
      remove: function(e, t) {
        e = u.isArray(e) ? e.slice() : [ e ], t || (t = {});
        var n, r, i, a;
        for (n = 0, r = e.length; r > n; n++) a = this.get(e[n]), a && (delete this._byId[a.id], 
        delete this._byId[a.cid], i = this.indexOf(a), this.models.splice(i, 1), this.length--, 
        t.silent || (t.index = i, a.trigger("remove", a, this, t)), this._removeReference(a));
        return this;
      },
      set: function(e, t) {
        t = u.defaults(t || {}, b), t.parse && (e = this.parse(e, t)), u.isArray(e) || (e = e ? [ e ] : []);
        var n, r, i, o, l, c = t.at, f = this.comparator && null == c && t.sort !== !1, p = u.isString(this.comparator) ? this.comparator : null, d = [], h = [], m = {};
        for (n = 0, r = e.length; r > n; n++) (i = this._prepareModel(e[n], t)) && ((o = this.get(i)) ? (t.remove && (m[o.cid] = !0), 
        t.merge && (o.set(i.attributes, t), f && !l && o.hasChanged(p) && (l = !0))) : t.add && (d.push(i), 
        i.on("all", this._onModelEvent, this), this._byId[i.cid] = i, null != i.id && (this._byId[i.id] = i)));
        if (t.remove) {
          for (n = 0, r = this.length; r > n; ++n) m[(i = this.models[n]).cid] || h.push(i);
          h.length && this.remove(h, t);
        }
        if (d.length && (f && (l = !0), this.length += d.length, null != c ? s.apply(this.models, [ c, 0 ].concat(d)) : a.apply(this.models, d)), 
        l && this.sort({
          silent: !0
        }), t.silent) return this;
        for (n = 0, r = d.length; r > n; n++) (i = d[n]).trigger("add", i, this, t);
        return l && this.trigger("sort", this, t), this;
      },
      reset: function(e, t) {
        t || (t = {});
        for (var n = 0, r = this.models.length; r > n; n++) this._removeReference(this.models[n]);
        return t.previousModels = this.models, this._reset(), this.add(e, u.extend({
          silent: !0
        }, t)), t.silent || this.trigger("reset", this, t), this;
      },
      push: function(e, t) {
        return e = this._prepareModel(e, t), this.add(e, u.extend({
          at: this.length
        }, t)), e;
      },
      pop: function(e) {
        var t = this.at(this.length - 1);
        return this.remove(t, e), t;
      },
      unshift: function(e, t) {
        return e = this._prepareModel(e, t), this.add(e, u.extend({
          at: 0
        }, t)), e;
      },
      shift: function(e) {
        var t = this.at(0);
        return this.remove(t, e), t;
      },
      slice: function(e, t) {
        return this.models.slice(e, t);
      },
      get: function(e) {
        return null == e ? void 0 : this._byId[null != e.id ? e.id : e.cid || e];
      },
      at: function(e) {
        return this.models[e];
      },
      where: function(e, t) {
        return u.isEmpty(e) ? t ? void 0 : [] : this[t ? "find" : "filter"](function(t) {
          for (var n in e) if (e[n] !== t.get(n)) return !1;
          return !0;
        });
      },
      findWhere: function(e) {
        return this.where(e, !0);
      },
      sort: function(e) {
        if (!this.comparator) throw new Error("Cannot sort a set without a comparator");
        return e || (e = {}), u.isString(this.comparator) || 1 === this.comparator.length ? this.models = this.sortBy(this.comparator, this) : this.models.sort(u.bind(this.comparator, this)), 
        e.silent || this.trigger("sort", this, e), this;
      },
      sortedIndex: function(e, t, n) {
        t || (t = this.comparator);
        var r = u.isFunction(t) ? t : function(e) {
          return e.get(t);
        };
        return u.sortedIndex(this.models, e, r, n);
      },
      pluck: function(e) {
        return u.invoke(this.models, "get", e);
      },
      fetch: function(e) {
        e = e ? u.clone(e) : {}, void 0 === e.parse && (e.parse = !0);
        var t = e.success, n = this;
        return e.success = function(r) {
          var i = e.reset ? "reset" : "set";
          n[i](r, e), t && t(n, r, e), n.trigger("sync", n, r, e);
        }, D(this, e), this.sync("read", this, e);
      },
      create: function(e, t) {
        if (t = t ? u.clone(t) : {}, !(e = this._prepareModel(e, t))) return !1;
        t.wait || this.add(e, t);
        var n = this, r = t.success;
        return t.success = function(i) {
          t.wait && n.add(e, t), r && r(e, i, t);
        }, e.save(null, t), e;
      },
      parse: function(e) {
        return e;
      },
      clone: function() {
        return new this.constructor(this.models);
      },
      _reset: function() {
        this.length = 0, this.models = [], this._byId = {};
      },
      _prepareModel: function(e, t) {
        if (e instanceof h) return e.collection || (e.collection = this), e;
        t || (t = {}), t.collection = this;
        var n = new this.model(e, t);
        return n._validate(e, t) ? n : (this.trigger("invalid", this, e, t), !1);
      },
      _removeReference: function(e) {
        this === e.collection && delete e.collection, e.off("all", this._onModelEvent, this);
      },
      _onModelEvent: function(e, t, n, r) {
        ("add" !== e && "remove" !== e || n === this) && ("destroy" === e && this.remove(t, r), 
        t && e === "change:" + t.idAttribute && (delete this._byId[t.previous(t.idAttribute)], 
        null != t.id && (this._byId[t.id] = t)), this.trigger.apply(this, arguments));
      }
    });
    var w = [ "forEach", "each", "map", "collect", "reduce", "foldl", "inject", "reduceRight", "foldr", "find", "detect", "filter", "select", "reject", "every", "all", "some", "any", "include", "contains", "invoke", "max", "min", "toArray", "size", "first", "head", "take", "initial", "rest", "tail", "drop", "last", "without", "indexOf", "shuffle", "lastIndexOf", "isEmpty", "chain" ];
    u.each(w, function(e) {
      v.prototype[e] = function() {
        var t = o.call(arguments);
        return t.unshift(this.models), u[e].apply(u, t);
      };
    });
    var x = [ "groupBy", "countBy", "sortBy" ];
    u.each(x, function(e) {
      v.prototype[e] = function(t, n) {
        var r = u.isFunction(t) ? t : function(e) {
          return e.get(t);
        };
        return u[e](this.models, r, n);
      };
    });
    var _ = e.View = function(e) {
      this.cid = u.uniqueId("view"), this._configure(e || {}), this._ensureElement(), 
      this.initialize.apply(this, arguments), this.delegateEvents();
    }, k = /^(\S+)\s*(.*)$/, N = [ "model", "collection", "el", "id", "attributes", "className", "tagName", "events" ];
    u.extend(_.prototype, l, {
      tagName: "div",
      $: function(e) {
        return this.$el.find(e);
      },
      initialize: function() {},
      render: function() {
        return this;
      },
      remove: function() {
        return this.$el.remove(), this.stopListening(), this;
      },
      setElement: function(t, n) {
        return this.$el && this.undelegateEvents(), this.$el = t instanceof e.$ ? t : e.$(t), 
        this.el = this.$el[0], n !== !1 && this.delegateEvents(), this;
      },
      delegateEvents: function(e) {
        if (!e && !(e = u.result(this, "events"))) return this;
        this.undelegateEvents();
        for (var t in e) {
          var n = e[t];
          if (u.isFunction(n) || (n = this[e[t]]), n) {
            var r = t.match(k), i = r[1], a = r[2];
            n = u.bind(n, this), i += ".delegateEvents" + this.cid, "" === a ? this.$el.on(i, n) : this.$el.on(i, a, n);
          }
        }
        return this;
      },
      undelegateEvents: function() {
        return this.$el.off(".delegateEvents" + this.cid), this;
      },
      _configure: function(e) {
        this.options && (e = u.extend({}, u.result(this, "options"), e)), u.extend(this, u.pick(e, N)), 
        this.options = e;
      },
      _ensureElement: function() {
        if (this.el) this.setElement(u.result(this, "el"), !1); else {
          var t = u.extend({}, u.result(this, "attributes"));
          this.id && (t.id = u.result(this, "id")), this.className && (t["class"] = u.result(this, "className"));
          var n = e.$("<" + u.result(this, "tagName") + ">").attr(t);
          this.setElement(n, !1);
        }
      }
    }), e.sync = function(t, n, r) {
      var i = E[t];
      u.defaults(r || (r = {}), {
        emulateHTTP: e.emulateHTTP,
        emulateJSON: e.emulateJSON
      });
      var a = {
        type: i,
        dataType: "json"
      };
      if (r.url || (a.url = u.result(n, "url") || z()), null != r.data || !n || "create" !== t && "update" !== t && "patch" !== t || (a.contentType = "application/json", 
      a.data = JSON.stringify(r.attrs || n.toJSON(r))), r.emulateJSON && (a.contentType = "application/x-www-form-urlencoded", 
      a.data = a.data ? {
        model: a.data
      } : {}), r.emulateHTTP && ("PUT" === i || "DELETE" === i || "PATCH" === i)) {
        a.type = "POST", r.emulateJSON && (a.data._method = i);
        var o = r.beforeSend;
        r.beforeSend = function(e) {
          return e.setRequestHeader("X-HTTP-Method-Override", i), o ? o.apply(this, arguments) : void 0;
        };
      }
      "GET" === a.type || r.emulateJSON || (a.processData = !1), "PATCH" !== a.type || !window.ActiveXObject || window.external && window.external.msActiveXFilteringEnabled || (a.xhr = function() {
        return new ActiveXObject("Microsoft.XMLHTTP");
      });
      var s = r.xhr = e.ajax(u.extend(a, r));
      return n.trigger("request", n, s, r), s;
    };
    var E = {
      create: "POST",
      update: "PUT",
      patch: "PATCH",
      "delete": "DELETE",
      read: "GET"
    };
    e.ajax = function() {
      return e.$.ajax.apply(e.$, arguments);
    };
    var T = e.Router = function(e) {
      e || (e = {}), e.routes && (this.routes = e.routes), this._bindRoutes(), this.initialize.apply(this, arguments);
    }, S = /\((.*?)\)/g, O = /(\(\?)?:\w+/g, C = /\*\w+/g, A = /[\-{}\[\]+?.,\\\^$|#\s]/g;
    u.extend(T.prototype, l, {
      initialize: function() {},
      route: function(t, n, r) {
        u.isRegExp(t) || (t = this._routeToRegExp(t)), u.isFunction(n) && (r = n, n = ""), 
        r || (r = this[n]);
        var i = this;
        return e.history.route(t, function(a) {
          var o = i._extractParameters(t, a);
          r && r.apply(i, o), i.trigger.apply(i, [ "route:" + n ].concat(o)), i.trigger("route", n, o), 
          e.history.trigger("route", i, n, o);
        }), this;
      },
      navigate: function(t, n) {
        return e.history.navigate(t, n), this;
      },
      _bindRoutes: function() {
        if (this.routes) {
          this.routes = u.result(this, "routes");
          for (var e, t = u.keys(this.routes); null != (e = t.pop()); ) this.route(e, this.routes[e]);
        }
      },
      _routeToRegExp: function(e) {
        return e = e.replace(A, "\\{COMPILED_JS}").replace(S, "(?:$1)?").replace(O, function(e, t) {
          return t ? e : "([^/]+)";
        }).replace(C, "(.*?)"), new RegExp("^" + e + "$");
      },
      _extractParameters: function(e, t) {
        var n = e.exec(t).slice(1);
        return u.map(n, function(e) {
          return e ? decodeURIComponent(e) : null;
        });
      }
    });
    var j = e.History = function() {
      this.handlers = [], u.bindAll(this, "checkUrl"), "undefined" != typeof window && (this.location = window.location, 
      this.history = window.history);
    }, I = /^[#\/]|\s+$/g, P = /^\/+|\/+$/g, R = /msie [\w.]+/, L = /\/$/;
    j.started = !1, u.extend(j.prototype, l, {
      interval: 50,
      getHash: function(e) {
        var t = (e || this).location.href.match(/#(.*)$/);
        return t ? t[1] : "";
      },
      getFragment: function(e, t) {
        if (null == e) if (this._hasPushState || !this._wantsHashChange || t) {
          e = this.location.pathname;
          var n = this.root.replace(L, "");
          e.indexOf(n) || (e = e.substr(n.length));
        } else e = this.getHash();
        return e.replace(I, "");
      },
      start: function(t) {
        if (j.started) throw new Error("Backbone.history has already been started");
        j.started = !0, this.options = u.extend({}, {
          root: "/"
        }, this.options, t), this.root = this.options.root, this._wantsHashChange = this.options.hashChange !== !1, 
        this._wantsPushState = !!this.options.pushState, this._hasPushState = !!(this.options.pushState && this.history && this.history.pushState);
        var n = this.getFragment(), r = document.documentMode, i = R.exec(navigator.userAgent.toLowerCase()) && (!r || 7 >= r);
        this.root = ("/" + this.root + "/").replace(P, "/"), i && this._wantsHashChange && (this.iframe = e.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow, 
        this.navigate(n)), this._hasPushState ? e.$(window).on("popstate", this.checkUrl) : this._wantsHashChange && "onhashchange" in window && !i ? e.$(window).on("hashchange", this.checkUrl) : this._wantsHashChange && (this._checkUrlInterval = setInterval(this.checkUrl, this.interval)), 
        this.fragment = n;
        var a = this.location, o = a.pathname.replace(/[^\/]$/, "{COMPILED_JS}/") === this.root;
        return this._wantsHashChange && this._wantsPushState && !this._hasPushState && !o ? (this.fragment = this.getFragment(null, !0), 
        this.location.replace(this.root + this.location.search + "#" + this.fragment), !0) : (this._wantsPushState && this._hasPushState && o && a.hash && (this.fragment = this.getHash().replace(I, ""), 
        this.history.replaceState({}, document.title, this.root + this.fragment + a.search)), 
        this.options.silent ? void 0 : this.loadUrl());
      },
      stop: function() {
        e.$(window).off("popstate", this.checkUrl).off("hashchange", this.checkUrl), clearInterval(this._checkUrlInterval), 
        j.started = !1;
      },
      route: function(e, t) {
        this.handlers.unshift({
          route: e,
          callback: t
        });
      },
      checkUrl: function() {
        var e = this.getFragment();
        return e === this.fragment && this.iframe && (e = this.getFragment(this.getHash(this.iframe))), 
        e === this.fragment ? !1 : (this.iframe && this.navigate(e), this.loadUrl() || this.loadUrl(this.getHash()), 
        void 0);
      },
      loadUrl: function(e) {
        var t = this.fragment = this.getFragment(e), n = u.any(this.handlers, function(e) {
          return e.route.test(t) ? (e.callback(t), !0) : void 0;
        });
        return n;
      },
      navigate: function(e, t) {
        if (!j.started) return !1;
        if (t && t !== !0 || (t = {
          trigger: t
        }), e = this.getFragment(e || ""), this.fragment !== e) {
          this.fragment = e;
          var n = this.root + e;
          if (this._hasPushState) this.history[t.replace ? "replaceState" : "pushState"]({}, document.title, n); else {
            if (!this._wantsHashChange) return this.location.assign(n);
            this._updateHash(this.location, e, t.replace), this.iframe && e !== this.getFragment(this.getHash(this.iframe)) && (t.replace || this.iframe.document.open().close(), 
            this._updateHash(this.iframe.location, e, t.replace));
          }
          t.trigger && this.loadUrl(e);
        }
      },
      _updateHash: function(e, t, n) {
        if (n) {
          var r = e.href.replace(/(javascript:|#).*$/, "");
          e.replace(r + "#" + t);
        } else e.hash = "#" + t;
      }
    }), e.history = new j();
    var M = function(e, t) {
      var n, r = this;
      n = e && u.has(e, "constructor") ? e.constructor : function() {
        return r.apply(this, arguments);
      }, u.extend(n, r, t);
      var i = function() {
        this.constructor = n;
      };
      return i.prototype = r.prototype, n.prototype = new i(), e && u.extend(n.prototype, e), 
      n.__super__ = r.prototype, n;
    };
    h.extend = v.extend = T.extend = _.extend = j.extend = M;
    var z = function() {
      throw new Error('A "url" property or function must be specified');
    }, D = function(e, t) {
      var n = t.error;
      t.error = function(r) {
        n && n(e, r, t), e.trigger("error", e, r, t);
      };
    };
  }.call(this), n("backbone", [ "underscore", "zepto" ], function(e) {
    return function() {
      var t;
      return t || e.Backbone;
    };
  }(this)), n("util", [ "exports", "module", "zepto", "underscore" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r);
    t.exports = {
      addUrlParameters: function(e, t) {
        var n = e.toString();
        n += -1 !== n.indexOf("?") ? "&" : "?";
        var r = [];
        for (var i in t) if (t.hasOwnProperty(i)) {
          var a = t[i];
          void 0 !== a && r.push(i + "=" + a);
        }
        return n += r.join("&");
      },
      parseUrlParameters: function(e) {
        var t = {}, n = -1 !== e.indexOf("?") ? e.split("?")[1] : null;
        return n && n.length > 1 && o["default"].each(n.split("&"), function(e) {
          var n = e.split("=");
          t[decodeURIComponent(n[0])] = n.length > 1 ? decodeURIComponent(n[1]) : null;
        }), t;
      },
      createIframe: function(e, t, n, r, i) {
        t = t || 0, n = n || 0;
        var a = function(e, t, n) {
          var o = document.createElement("iframe");
          if (o.style.position = "absolute", o.style.top = "-2000px", o.style.left = "0px", 
          o.src = e, t > 0) {
            var s = setTimeout(function() {
              r && r(), console.log("Retrying iframe url: " + e), o.parentNode.removeChild(o), 
              a(e, t - 1, n);
            }, n);
            o.onload = function() {
              clearTimeout(s), i && i();
            };
          }
          document.getElementsByTagName("body")[0].appendChild(o);
        };
        a(e, t, n);
      },
      xhrCall: function(e, t, n, r, i, o) {
        var s = function(e, t, n, r, i, o) {
          a["default"].ajax({
            url: e,
            timeout: r,
            async: t,
            cache: !1,
            success: function(e) {
              o && o(e);
            },
            error: function() {
              n > 0 ? (i && i(), console.log("Retrying xhr url: " + e), s(e, t, n - 1, r, i, o)) : o && o(null);
            }
          });
        };
        s(e, t, n, r, i, o);
      },
      fetchStoreData: function(e, t) {
        var n = {};
        a["default"].ajax({
          url: "http://itunes.apple.com/lookup?id=" + e + "&callback=?",
          success: function(e) {
            e && e.results && 1 === e.results.length && (e = e.results[0], "artworkUrl512" in e && (n.icon = e.artworkUrl512), 
            "averageUserRating" in e && "userRatingCount" in e && (n.rating = 20 * parseFloat(e.averageUserRating), 
            n.ratingCount = e.userRatingCount));
          },
          complete: function() {
            t(n);
          }
        });
      },
      stringifyObject: function(e) {
        if ("JSON" in window) return JSON.stringify(e);
        var t = typeof e;
        if ("object" !== t || null === e) return "string" === t && (e = '"' + e + '"'), 
        String(e);
        var n, r, i = [], a = e && e.constructor === Array;
        for (n in e) e.hasOwnProperty(n) && (r = e[n], t = typeof r, "string" === t ? r = '"' + r + '"' : "object" === t && null !== r && (r = this.stringifyObject(r)), 
        i.push((a ? "" : '"' + n + '":') + String(r)));
        return (a ? "[" : "{") + String(i) + (a ? "]" : "}");
      }
    };
  }), n("event_tracking", [ "exports", "module", "zepto", "underscore", "util" ], function(e, t, n, r, i) {
    function a(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var o = a(n), s = a(r), u = a(i), l = {
      types: {
        PLAY: "videoAnalyticsEventPlay",
        ERROR: "videoAnalyticsEventError",
        ABORT: "videoAnalyticsEventAbort",
        CACHING: "videoAnalyticsEventCaching"
      },
      labels: {
        BACK: "back",
        EXIT: "exit",
        START: "start",
        COMPLETED: "completed",
        FAILED: "failed"
      }
    }, c = {
      video: {
        START: "start_ok",
        ERROR: "playback_error",
        ABORT: "abort_by_",
        CACHE: "cache_"
      }
    }, f = {
      setupGA: function() {
        window._gaq = [], window._gaq.push([ "_setAccount", "UA-37041190-1" ]), window._gaq.push([ "_setSampleRate", "1" ]);
        var e = document.createElement("script");
        e.type = "text/javascript", e.async = !0, e.src = ("https:" === document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js", 
        o["default"]("head").append(e);
      },
      setupSession: function() {
        this.setCustomVariable("connectionType", window.applifierimpact.properties.get("connectionType")), 
        this.setCustomVariable("gameId", window.applifierimpact.properties.get("gameId"), 2), 
        this.setCustomVariable("devicePixelRatio", "devicePixelRatio" in window ? window.devicePixelRatio.toString() : "undefined", 3), 
        this.setCustomVariable("abGroup", window.applifierimpact.properties.get("ab_group").toString(), 4);
        var e = window.applifierimpact.properties.get("zone");
        e && this.setCustomVariable("zoneId", e, 5);
      },
      parseAndTrackEvents: function(e) {
        var t = this;
        s["default"].each(e, function(e) {
          var n = t._parseEvent(e);
          n && t.trackEvent("video", n.action, n.label, n.value);
        });
      },
      setCustomVariable: function(e, t, n, r) {
        n || (n = 1), r || (r = 2), this._GACall([ "_setCustomVar", n, e, t, r ]);
      },
      trackPageview: function() {
        this._GACall([ "_trackPageview" ]);
      },
      trackEvent: function(e, t, n, r) {
        if ("error" === e) {
          var i = [ "_trackEvent", e, t ];
          n && i.push(n), r && i.push(r), this._GACall(i);
        }
      },
      trackError: function(e, t, n) {
        console.log("trackError:" + e), window._gaq && window._gaq.push([ "_trackEvent", "JS Error", e, t + " (" + n + ")", 0, !0 ]);
      },
      _parseEvent: function(e) {
        var t, n, r, i = 0, a = e.eventType, o = e.data;
        if (console.log("Tracking data: " + u["default"].stringifyObject(e)), !o) return console.error("Cannot parse event data"), 
        void 0;
        switch ("bufferingDuration" in o && (i = parseInt(o.bufferingDuration / 1e3, 10)), 
        t = "play_" + o.videoPlaybackType, a) {
         case l.types.PLAY:
          n = c.video.START, r = i;
          break;

         case l.types.ERROR:
          n = c.video.ERROR;
          break;

         case l.types.ABORT:
          n = c.video.ABORT + o.eventValue, r = i;
          break;

         case l.types.CACHING:
          t = "caching_status", n = c.video.CACHE + o.eventValue;
        }
        return {
          action: t,
          label: n,
          value: r
        };
      },
      _GACall: function(e) {
        window._gaq && (console.log("GoogleAnalytics call:" + e), window._gaq.push(e));
      }
    };
    t.exports = f;
  }), n("models/campaign", [ "exports", "module", "backbone" ], function(e, t, n) {
    function r(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var i = r(n);
    t.exports = i["default"].Model.extend({
      parse: function(e) {
        return e.rating && (e.rating = 20 * parseFloat(e.rating) - 2), e;
      }
    });
  }), n("collections/campaigns", [ "exports", "module", "backbone", "models/campaign" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r);
    t.exports = a["default"].Collection.extend({
      model: o["default"]
    });
  }), n("models/item", [ "exports", "module", "backbone" ], function(e, t, n) {
    function r(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var i = r(n);
    t.exports = i["default"].Model.extend({
      validate: function(e) {
        for (var t in e) if (e.hasOwnProperty(t)) {
          var n = e[t];
          if ("string" == typeof n && !n.length) return !console.log('Item attribute "' + t + '" is empty.');
        }
      }
    });
  }), n("collections/items", [ "exports", "module", "backbone", "models/item" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r);
    t.exports = a["default"].Collection.extend({
      model: o["default"]
    });
  }), n("models/zone", [ "exports", "module", "backbone", "collections/items" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r);
    t.exports = a["default"].Model.extend({
      idAttribute: "id",
      initialize: function(e) {
        this.items = new o["default"](e.rewardItems);
      },
      parse: function(e) {
        this.items.reset(e.rewardItems);
      }
    });
  }), n("collections/zones", [ "exports", "module", "backbone", "models/zone" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r);
    t.exports = a["default"].Collection.extend({
      model: o["default"]
    });
  }), n("models/properties", [ "exports", "module", "backbone" ], function(e, t, n) {
    function r(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var i = r(n);
    t.exports = i["default"].Model.extend({
      parse: function(e) {
        if (e.iOSVersion && (e.iOSVersion = parseFloat(e.iOSVersion)), e.deviceType) {
          var t = parseInt(e.deviceType, 10);
          isNaN(t) ? e.deviceType.match(/iphone/i) || e.deviceType.match(/ipod/i) ? e.deviceType = "iphone" : e.deviceType.match(/ipad/i) && (e.deviceType = "ipad") : e.deviceType = "android";
        }
        return e.sdkVersion && (e.sdkVersion = parseInt(e.sdkVersion, 10)), e;
      }
    });
  }), function(e, t) {
    "object" == typeof exports ? module.exports = t() : "function" == typeof n && n.amd && n("i18next", [], t);
  }(this, function() {
    function e(e, t) {
      if (!t || "function" == typeof t) return e;
      for (var n in t) e[n] = t[n];
      return e;
    }
    function t(e, t, n) {
      var r, i = 0, a = e.length, o = void 0 === a || "function" == typeof e;
      if (n) if (o) {
        for (r in e) if (t.apply(e[r], n) === !1) break;
      } else for (;a > i && t.apply(e[i++], n) !== !1; ) ; else if (o) {
        for (r in e) if (t.call(e[r], r, e[r]) === !1) break;
      } else for (;a > i && t.call(e[i], i, e[i++]) !== !1; ) ;
      return e;
    }
    function n(e) {
      return "string" == typeof e ? e.replace(/[&<>"'\/]/g, function(e) {
        return P[e];
      }) : e;
    }
    function r(e) {
      var t = function(e) {
        if (window.XMLHttpRequest) return e(null, new XMLHttpRequest());
        if (window.ActiveXObject) try {
          return e(null, new ActiveXObject("Msxml2.XMLHTTP"));
        } catch (t) {
          return e(null, new ActiveXObject("Microsoft.XMLHTTP"));
        }
        return e(new Error());
      }, n = function(e) {
        if ("string" == typeof e) return e;
        var t = [];
        for (var n in e) e.hasOwnProperty(n) && t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
        return t.join("&");
      }, r = function(e) {
        e = e.replace(/\r\n/g, "\n");
        for (var t = "", n = 0; n < e.length; n++) {
          var r = e.charCodeAt(n);
          128 > r ? t += String.fromCharCode(r) : r > 127 && 2048 > r ? (t += String.fromCharCode(192 | r >> 6), 
          t += String.fromCharCode(128 | 63 & r)) : (t += String.fromCharCode(224 | r >> 12), 
          t += String.fromCharCode(128 | 63 & r >> 6), t += String.fromCharCode(128 | 63 & r));
        }
        return t;
      }, i = function(e) {
        var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
        e = r(e);
        var n, i, a, o, s, u, l, c = "", f = 0;
        do n = e.charCodeAt(f++), i = e.charCodeAt(f++), a = e.charCodeAt(f++), o = n >> 2, 
        s = (3 & n) << 4 | i >> 4, u = (15 & i) << 2 | a >> 6, l = 63 & a, isNaN(i) ? u = l = 64 : isNaN(a) && (l = 64), 
        c += t.charAt(o) + t.charAt(s) + t.charAt(u) + t.charAt(l), n = i = a = "", o = s = u = l = ""; while (f < e.length);
        return c;
      }, a = function() {
        for (var e = arguments[0], t = 1; t < arguments.length; t++) {
          var n = arguments[t];
          for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
        }
        return e;
      }, o = function(e, r, i, s) {
        "function" == typeof i && (s = i, i = {}), i.cache = i.cache || !1, i.data = i.data || {}, 
        i.headers = i.headers || {}, i.jsonp = i.jsonp || !1, i.async = void 0 === i.async ? !0 : i.async;
        var u, l = a({
          accept: "*/*",
          "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
        }, o.headers, i.headers);
        if (u = "application/json" === l["content-type"] ? JSON.stringify(i.data) : n(i.data), 
        "GET" === e) {
          var c = [];
          if (u && (c.push(u), u = null), i.cache || c.push("_=" + new Date().getTime()), 
          i.jsonp && (c.push("callback=" + i.jsonp), c.push("jsonp=" + i.jsonp)), c = c.join("&"), 
          c.length > 1 && (r += r.indexOf("?") > -1 ? "&" + c : "?" + c), i.jsonp) {
            var f = document.getElementsByTagName("head")[0], p = document.createElement("script");
            return p.type = "text/javascript", p.src = r, f.appendChild(p), void 0;
          }
        }
        t(function(t, n) {
          if (t) return s(t);
          n.open(e, r, i.async);
          for (var a in l) l.hasOwnProperty(a) && n.setRequestHeader(a, l[a]);
          n.onreadystatechange = function() {
            if (4 === n.readyState) {
              var e = n.responseText || "";
              if (!s) return;
              s(n.status, {
                text: function() {
                  return e;
                },
                json: function() {
                  return JSON.parse(e);
                }
              });
            }
          }, n.send(u);
        });
      }, s = {
        authBasic: function(e, t) {
          o.headers.Authorization = "Basic " + i(e + ":" + t);
        },
        connect: function(e, t, n) {
          return o("CONNECT", e, t, n);
        },
        del: function(e, t, n) {
          return o("DELETE", e, t, n);
        },
        get: function(e, t, n) {
          return o("GET", e, t, n);
        },
        head: function(e, t, n) {
          return o("HEAD", e, t, n);
        },
        headers: function(e) {
          o.headers = e || {};
        },
        isAllowed: function(e, t, n) {
          this.options(e, function(e, r) {
            n(-1 !== r.text().indexOf(t));
          });
        },
        options: function(e, t, n) {
          return o("OPTIONS", e, t, n);
        },
        patch: function(e, t, n) {
          return o("PATCH", e, t, n);
        },
        post: function(e, t, n) {
          return o("POST", e, t, n);
        },
        put: function(e, t, n) {
          return o("PUT", e, t, n);
        },
        trace: function(e, t, n) {
          return o("TRACE", e, t, n);
        }
      }, u = e.type ? e.type.toLowerCase() : "get";
      s[u](e.url, e, function(t, n) {
        200 === t ? e.success(n.json(), t, null) : e.error(n.text(), t, null);
      });
    }
    function i(e, t) {
      "function" == typeof e && (t = e, e = {}), e = e || {}, M.extend(I, e), delete I.fixLng, 
      "string" == typeof I.ns && (I.ns = {
        namespaces: [ I.ns ],
        defaultNs: I.ns
      }), "string" == typeof I.fallbackNS && (I.fallbackNS = [ I.fallbackNS ]), I.interpolationPrefixEscaped = M.regexEscape(I.interpolationPrefix), 
      I.interpolationSuffixEscaped = M.regexEscape(I.interpolationSuffix), I.lng || (I.lng = M.detectLanguage()), 
      I.lng ? I.useCookie && M.cookie.create(I.cookieName, I.lng, I.cookieExpirationTime, I.cookieDomain) : (I.lng = I.fallbackLng, 
      I.useCookie && M.cookie.remove(I.cookieName)), A = M.toLanguages(I.lng), E = A[0], 
      M.log("currentLng set to: " + E);
      var n = y;
      e.fixLng && (n = function(e, t) {
        return t = t || {}, t.lng = t.lng || n.lng, y(e, t);
      }, n.lng = E), D.setCurrentLng(E), T && I.setJqueryExt && d();
      var r;
      if (T && T.Deferred && (r = T.Deferred()), !I.resStore) {
        var i = M.toLanguages(I.lng);
        "string" == typeof I.preload && (I.preload = [ I.preload ]);
        for (var a = 0, o = I.preload.length; o > a; a++) for (var s = M.toLanguages(I.preload[a]), u = 0, l = s.length; l > u; u++) i.indexOf(s[u]) < 0 && i.push(s[u]);
        return S.sync.load(i, I, function(e, i) {
          O = i, j = !0, t && t(n), r && r.resolve(n);
        }), r ? r.promise() : void 0;
      }
      return O = I.resStore, j = !0, t && t(n), r && r.resolve(n), r ? r.promise() : void 0;
    }
    function a(e, t) {
      "string" == typeof e && (e = [ e ]);
      for (var n = 0, r = e.length; r > n; n++) I.preload.indexOf(e[n]) < 0 && I.preload.push(e[n]);
      return i(t);
    }
    function o(e, t, n) {
      "string" != typeof t ? (n = t, t = I.ns.defaultNs) : I.ns.namespaces.indexOf(t) < 0 && I.ns.namespaces.push(t), 
      O[e] = O[e] || {}, O[e][t] = O[e][t] || {}, M.extend(O[e][t], n);
    }
    function s(e, t) {
      "string" != typeof t && (t = I.ns.defaultNs), O[e] = O[e] || {}, O[e][t] = {};
    }
    function u(e) {
      I.ns.defaultNs = e;
    }
    function l(e, t) {
      c([ e ], t);
    }
    function c(e, t) {
      var n = {
        dynamicLoad: I.dynamicLoad,
        resGetPath: I.resGetPath,
        getAsync: I.getAsync,
        customLoad: I.customLoad,
        ns: {
          namespaces: e,
          defaultNs: ""
        }
      }, r = M.toLanguages(I.lng);
      "string" == typeof I.preload && (I.preload = [ I.preload ]);
      for (var i = 0, a = I.preload.length; a > i; i++) for (var o = M.toLanguages(I.preload[i]), s = 0, u = o.length; u > s; s++) r.indexOf(o[s]) < 0 && r.push(o[s]);
      for (var l = [], c = 0, f = r.length; f > c; c++) {
        var p = !1, d = O[r[c]];
        if (d) for (var h = 0, m = e.length; m > h; h++) d[e[h]] || (p = !0); else p = !0;
        p && l.push(r[c]);
      }
      l.length ? S.sync._fetch(l, n, function(n, r) {
        var i = e.length * l.length;
        M.each(e, function(e, n) {
          I.ns.namespaces.indexOf(n) < 0 && I.ns.namespaces.push(n), M.each(l, function(e, a) {
            O[a] = O[a] || {}, O[a][n] = r[a][n], i--, 0 === i && t && (I.useLocalStorage && S.sync._storeLocal(O), 
            t());
          });
        });
      }) : t && t();
    }
    function f(e, t, n) {
      return "function" == typeof t ? (n = t, t = {}) : t || (t = {}), t.lng = e, i(t, n);
    }
    function p() {
      return E;
    }
    function d() {
      function e(e, t, n) {
        if (0 !== t.length) {
          var r = "text";
          if (0 === t.indexOf("[")) {
            var i = t.split("]");
            t = i[1], r = i[0].substr(1, i[0].length - 1);
          }
          t.indexOf(";") === t.length - 1 && (t = t.substr(0, t.length - 2));
          var a;
          "html" === r ? (a = I.defaultValueFromContent ? T.extend({
            defaultValue: e.html()
          }, n) : n, e.html(T.t(t, a))) : "text" === r ? (a = I.defaultValueFromContent ? T.extend({
            defaultValue: e.text()
          }, n) : n, e.text(T.t(t, a))) : "prepend" === r ? (a = I.defaultValueFromContent ? T.extend({
            defaultValue: e.html()
          }, n) : n, e.prepend(T.t(t, a))) : "append" === r ? (a = I.defaultValueFromContent ? T.extend({
            defaultValue: e.html()
          }, n) : n, e.append(T.t(t, a))) : (a = I.defaultValueFromContent ? T.extend({
            defaultValue: e.attr(r)
          }, n) : n, e.attr(r, T.t(t, a)));
        }
      }
      function t(t, n) {
        var r = t.attr(I.selectorAttr);
        if (r || "undefined" == typeof r || r === !1 || (r = t.text() || t.val()), r) {
          var i = t, a = t.data("i18n-target");
          if (a && (i = t.find(a) || t), n || I.useDataAttrOptions !== !0 || (n = t.data("i18n-options")), 
          n = n || {}, r.indexOf(";") >= 0) {
            var o = r.split(";");
            T.each(o, function(t, r) {
              "" !== r && e(i, r, n);
            });
          } else e(i, r, n);
          I.useDataAttrOptions === !0 && t.data("i18n-options", n);
        }
      }
      T.t = T.t || y, T.fn.i18n = function(e) {
        return this.each(function() {
          t(T(this), e);
          var n = T(this).find("[" + I.selectorAttr + "]");
          n.each(function() {
            t(T(this), e);
          });
        });
      };
    }
    function h(e, t, n, r) {
      if (!e) return e;
      if (r = r || t, e.indexOf(r.interpolationPrefix || I.interpolationPrefix) < 0) return e;
      var i = r.interpolationPrefix ? M.regexEscape(r.interpolationPrefix) : I.interpolationPrefixEscaped, a = r.interpolationSuffix ? M.regexEscape(r.interpolationSuffix) : I.interpolationSuffixEscaped, o = "HTML" + a;
      return M.each(t, function(t, s) {
        var u = n ? n + I.keyseparator + t : t;
        "object" == typeof s && null !== s ? e = h(e, s, u, r) : r.escapeInterpolation || I.escapeInterpolation ? (e = e.replace(new RegExp([ i, u, o ].join(""), "g"), s), 
        e = e.replace(new RegExp([ i, u, a ].join(""), "g"), M.escape(s))) : e = e.replace(new RegExp([ i, u, a ].join(""), "g"), s);
      }), e;
    }
    function m(e, t) {
      var n = ",", r = "{", i = "}", a = M.extend({}, t);
      for (delete a.postProcess; -1 != e.indexOf(I.reusePrefix) && (C++, !(C > I.maxRecursion)); ) {
        var o = e.lastIndexOf(I.reusePrefix), s = e.indexOf(I.reuseSuffix, o) + I.reuseSuffix.length, u = e.substring(o, s), l = u.replace(I.reusePrefix, "").replace(I.reuseSuffix, "");
        if (-1 != l.indexOf(n)) {
          var c = l.indexOf(n);
          if (-1 != l.indexOf(r, c) && -1 != l.indexOf(i, c)) {
            var f = l.indexOf(r, c), p = l.indexOf(i, f) + i.length;
            try {
              a = M.extend(a, JSON.parse(l.substring(f, p))), l = l.substring(0, c);
            } catch (d) {}
          }
        }
        var h = _(l, a);
        e = e.replace(u, h);
      }
      return e;
    }
    function g(e) {
      return e.context && ("string" == typeof e.context || "number" == typeof e.context);
    }
    function v(e) {
      return void 0 !== e.count && "string" != typeof e.count && 1 !== e.count;
    }
    function b(e, t) {
      t = t || {};
      var n = w(e, t), r = k(e, t);
      return void 0 !== r || r === n;
    }
    function y(e, t) {
      return t = t || {}, j ? (C = 0, _.apply(null, arguments)) : (M.log("i18next not finished initialization. you might have called t function before loading resources finished."), 
      t.defaultValue || "");
    }
    function w(e, t) {
      return void 0 !== t.defaultValue ? t.defaultValue : e;
    }
    function x() {
      for (var e = [], t = 1; t < arguments.length; t++) e.push(arguments[t]);
      return {
        postProcess: "sprintf",
        sprintf: e
      };
    }
    function _(e, t) {
      if ("string" == typeof t ? "sprintf" === I.shortcutFunction ? t = x.apply(null, arguments) : "defaultValue" === I.shortcutFunction && (t = {
        defaultValue: t
      }) : t = t || {}, void 0 === e || null === e) return "";
      "string" == typeof e && (e = [ e ]);
      var n = e[0];
      if (e.length > 1) for (var r = 0; r < e.length && (n = e[r], !b(n)); r++) ;
      var i, a = w(n, t), o = k(n, t), s = t.lng ? M.toLanguages(t.lng) : A, u = t.ns || I.ns.defaultNs;
      n.indexOf(I.nsseparator) > -1 && (i = n.split(I.nsseparator), u = i[0], n = i[1]), 
      void 0 === o && I.sendMissing && (t.lng ? z.postMissing(s[0], u, n, a, s) : z.postMissing(I.lng, u, n, a, s));
      var l = t.postProcess || I.postProcess;
      void 0 !== o && l && F[l] && (o = F[l](o, n, t));
      var c = a;
      if (a.indexOf(I.nsseparator) > -1 && (i = a.split(I.nsseparator), c = i[1]), c === n && I.parseMissingKey && (a = I.parseMissingKey(a)), 
      void 0 === o && (a = h(a, t), a = m(a, t), l && F[l])) {
        var f = w(n, t);
        o = F[l](f, n, t);
      }
      return void 0 !== o ? o : a;
    }
    function k(e, t) {
      t = t || {};
      var n, r, i = w(e, t), a = A;
      if (!O) return i;
      if (t.lng && (a = M.toLanguages(t.lng), !O[a[0]])) {
        var o = I.getAsync;
        I.getAsync = !1, S.sync.load(a, I, function(e, t) {
          M.extend(O, t), I.getAsync = o;
        });
      }
      var s = t.ns || I.ns.defaultNs;
      if (e.indexOf(I.nsseparator) > -1) {
        var u = e.split(I.nsseparator);
        s = u[0], e = u[1];
      }
      if (g(t)) {
        n = M.extend({}, t), delete n.context, n.defaultValue = I.contextNotFound;
        var l = s + I.nsseparator + e + "_" + t.context;
        if (r = y(l, n), r != I.contextNotFound) return h(r, {
          context: t.context
        });
      }
      if (v(t)) {
        n = M.extend({}, t), delete n.count, n.defaultValue = I.pluralNotFound;
        var c = s + I.nsseparator + e + I.pluralSuffix, f = D.get(a[0], t.count);
        if (f >= 0 ? c = c + "_" + f : 1 === f && (c = s + I.nsseparator + e), r = y(c, n), 
        r != I.pluralNotFound) return h(r, {
          count: t.count,
          interpolationPrefix: t.interpolationPrefix,
          interpolationSuffix: t.interpolationSuffix
        });
      }
      for (var p, d = e.split(I.keyseparator), b = 0, x = a.length; x > b && void 0 === p; b++) {
        for (var N = a[b], E = 0, T = O[N] && O[N][s]; d[E]; ) T = T && T[d[E]], E++;
        if (void 0 !== T) {
          var C = Object.prototype.toString.apply(T);
          if ("string" == typeof T) T = h(T, t), T = m(T, t); else if ("[object Array]" !== C || I.returnObjectTrees || t.returnObjectTrees) {
            if (null === T && I.fallbackOnNull === !0) T = void 0; else if (null !== T) if (I.returnObjectTrees || t.returnObjectTrees) {
              if ("[object Number]" !== C && "[object Function]" !== C && "[object RegExp]" !== C) {
                var j = "[object Array]" === C ? [] : {};
                M.each(T, function(n) {
                  j[n] = _(s + I.nsseparator + e + I.keyseparator + n, t);
                }), T = j;
              }
            } else I.objectTreeKeyHandler && "function" == typeof I.objectTreeKeyHandler ? T = I.objectTreeKeyHandler(e, T, N, s, t) : (T = "key '" + s + ":" + e + " (" + N + ")' " + "returned an object instead of string.", 
            M.log(T));
          } else T = T.join("\n"), T = h(T, t), T = m(T, t);
          "string" == typeof T && "" === T.trim() && I.fallbackOnEmpty === !0 && (T = void 0), 
          p = T;
        }
      }
      if (void 0 === p && !t.isFallbackLookup && (I.fallbackToDefaultNS === !0 || I.fallbackNS && I.fallbackNS.length > 0)) if (t.isFallbackLookup = !0, 
      I.fallbackNS.length) {
        for (var P = 0, R = I.fallbackNS.length; R > P; P++) if (p = k(I.fallbackNS[P] + I.nsseparator + e, t)) {
          var L = p.indexOf(I.nsseparator) > -1 ? p.split(I.nsseparator)[1] : p, z = i.indexOf(I.nsseparator) > -1 ? i.split(I.nsseparator)[1] : i;
          if (L !== z) break;
        }
      } else p = k(e, t);
      return p;
    }
    function N() {
      var e, t = [];
      if ("undefined" != typeof window && (function() {
        for (var e = window.location.search.substring(1), n = e.split("&"), r = 0; r < n.length; r++) {
          var i = n[r].indexOf("=");
          if (i > 0) {
            var a = n[r].substring(0, i), o = n[r].substring(i + 1);
            t[a] = o;
          }
        }
      }(), t[I.detectLngQS] && (e = t[I.detectLngQS])), !e && "undefined" != typeof document && I.useCookie) {
        var n = M.cookie.read(I.cookieName);
        n && (e = n);
      }
      return e || "undefined" == typeof navigator || (e = navigator.language ? navigator.language : navigator.userLanguage), 
      e;
    }
    Array.prototype.indexOf || (Array.prototype.indexOf = function(e) {
      if (null == this) throw new TypeError();
      var t = Object(this), n = t.length >>> 0;
      if (0 === n) return -1;
      var r = 0;
      if (arguments.length > 0 && (r = Number(arguments[1]), r != r ? r = 0 : 0 != r && 1/0 != r && r != -1/0 && (r = (r > 0 || -1) * Math.floor(Math.abs(r)))), 
      r >= n) return -1;
      for (var i = r >= 0 ? r : Math.max(n - Math.abs(r), 0); n > i; i++) if (i in t && t[i] === e) return i;
      return -1;
    }), Array.prototype.lastIndexOf || (Array.prototype.lastIndexOf = function(e) {
      if (null == this) throw new TypeError();
      var t = Object(this), n = t.length >>> 0;
      if (0 === n) return -1;
      var r = n;
      arguments.length > 1 && (r = Number(arguments[1]), r != r ? r = 0 : 0 != r && r != 1 / 0 && r != -(1 / 0) && (r = (r > 0 || -1) * Math.floor(Math.abs(r))));
      for (var i = r >= 0 ? Math.min(r, n - 1) : n - Math.abs(r); i >= 0; i--) if (i in t && t[i] === e) return i;
      return -1;
    });
    var E, T = void 0, S = {}, O = {}, C = 0, A = [], j = !1, I = {
      lng: void 0,
      load: "all",
      preload: [],
      lowerCaseLng: !1,
      returnObjectTrees: !1,
      fallbackLng: "dev",
      fallbackNS: [],
      detectLngQS: "setLng",
      ns: "translation",
      fallbackOnNull: !0,
      fallbackOnEmpty: !1,
      fallbackToDefaultNS: !1,
      nsseparator: ":",
      keyseparator: ".",
      selectorAttr: "data-i18n",
      debug: !1,
      resGetPath: "locales/__lng__/__ns__.json",
      resPostPath: "locales/add/__lng__/__ns__",
      getAsync: !0,
      postAsync: !0,
      resStore: void 0,
      useLocalStorage: !1,
      localStorageExpirationTime: 6048e5,
      dynamicLoad: !1,
      sendMissing: !1,
      sendMissingTo: "fallback",
      sendType: "POST",
      interpolationPrefix: "__",
      interpolationSuffix: "__",
      reusePrefix: "$t(",
      reuseSuffix: ")",
      pluralSuffix: "_plural",
      pluralNotFound: [ "plural_not_found", Math.random() ].join(""),
      contextNotFound: [ "context_not_found", Math.random() ].join(""),
      escapeInterpolation: !1,
      setJqueryExt: !0,
      defaultValueFromContent: !0,
      useDataAttrOptions: !1,
      cookieExpirationTime: void 0,
      useCookie: !0,
      cookieName: "i18next",
      cookieDomain: void 0,
      objectTreeKeyHandler: void 0,
      postProcess: void 0,
      parseMissingKey: void 0,
      shortcutFunction: "sprintf"
    }, P = {
      "&": "&amp;",
      "<": "&lt;",
      ">": "&gt;",
      '"': "&quot;",
      "'": "&#39;",
      "/": "&#x2F;"
    }, R = {
      create: function(e, t, n, r) {
        var i;
        if (n) {
          var a = new Date();
          a.setTime(a.getTime() + 1e3 * 60 * n), i = "; expires=" + a.toGMTString();
        } else i = "";
        r = r ? "domain=" + r + ";" : "", document.cookie = e + "=" + t + i + ";" + r + "path=/";
      },
      read: function(e) {
        for (var t = e + "=", n = document.cookie.split(";"), r = 0; r < n.length; r++) {
          for (var i = n[r]; " " == i.charAt(0); ) i = i.substring(1, i.length);
          if (0 === i.indexOf(t)) return i.substring(t.length, i.length);
        }
        return null;
      },
      remove: function(e) {
        this.create(e, "", -1);
      }
    }, L = {
      create: function() {},
      read: function() {
        return null;
      },
      remove: function() {}
    }, M = {
      extend: T ? T.extend : e,
      each: T ? T.each : t,
      ajax: T ? T.ajax : "undefined" != typeof document ? r : function() {},
      cookie: "undefined" != typeof document ? R : L,
      detectLanguage: N,
      escape: n,
      log: function(e) {
        I.debug && "undefined" != typeof console && console.log(e);
      },
      toLanguages: function(e) {
        var t = [];
        if ("string" == typeof e && e.indexOf("-") > -1) {
          var n = e.split("-");
          e = I.lowerCaseLng ? n[0].toLowerCase() + "-" + n[1].toLowerCase() : n[0].toLowerCase() + "-" + n[1].toUpperCase(), 
          "unspecific" !== I.load && t.push(e), "current" !== I.load && t.push(n[0]);
        } else t.push(e);
        return -1 === t.indexOf(I.fallbackLng) && I.fallbackLng && t.push(I.fallbackLng), 
        t;
      },
      regexEscape: function(e) {
        return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\{COMPILED_JS}");
      }
    };
    M.applyReplacement = h;
    var z = {
      load: function(e, t, n) {
        t.useLocalStorage ? z._loadLocal(e, t, function(r, i) {
          for (var a = [], o = 0, s = e.length; s > o; o++) i[e[o]] || a.push(e[o]);
          a.length > 0 ? z._fetch(a, t, function(e, t) {
            M.extend(i, t), z._storeLocal(t), n(null, i);
          }) : n(null, i);
        }) : z._fetch(e, t, function(e, t) {
          n(null, t);
        });
      },
      _loadLocal: function(e, t, n) {
        var r = {}, i = new Date().getTime();
        if (window.localStorage) {
          var a = e.length;
          M.each(e, function(e, o) {
            var s = window.localStorage.getItem("res_" + o);
            s && (s = JSON.parse(s), s.i18nStamp && s.i18nStamp + t.localStorageExpirationTime > i && (r[o] = s)), 
            a--, 0 === a && n(null, r);
          });
        }
      },
      _storeLocal: function(e) {
        if (window.localStorage) for (var t in e) e[t].i18nStamp = new Date().getTime(), 
        window.localStorage.setItem("res_" + t, JSON.stringify(e[t]));
      },
      _fetch: function(e, t, n) {
        var r = t.ns, i = {};
        if (t.dynamicLoad) {
          var a = function(e, t) {
            n(null, t);
          };
          if ("function" == typeof t.customLoad) t.customLoad(e, r.namespaces, t, a); else {
            var o = h(t.resGetPath, {
              lng: e.join("+"),
              ns: r.namespaces.join("+")
            });
            M.ajax({
              url: o,
              success: function(e) {
                M.log("loaded: " + o), a(null, e);
              },
              error: function(e, t, n) {
                M.log("failed loading: " + o), a("failed loading resource.json error: " + n);
              },
              dataType: "json",
              async: t.getAsync
            });
          }
        } else {
          var s, u = r.namespaces.length * e.length;
          M.each(r.namespaces, function(r, a) {
            M.each(e, function(e, r) {
              var o = function(e, t) {
                e && (s = s || [], s.push(e)), i[r] = i[r] || {}, i[r][a] = t, u--, 0 === u && n(s, i);
              };
              "function" == typeof t.customLoad ? t.customLoad(r, a, t, o) : z._fetchOne(r, a, t, o);
            });
          });
        }
      },
      _fetchOne: function(e, t, n, r) {
        var i = h(n.resGetPath, {
          lng: e,
          ns: t
        });
        M.ajax({
          url: i,
          success: function(e) {
            M.log("loaded: " + i), r(null, e);
          },
          error: function(e, t, n) {
            200 == n.status ? M.log("There is a typo in: " + i) : 404 == n.status ? M.log("Does not exist: " + i) : M.log(n.status + " when loading " + i), 
            r(n, {});
          },
          dataType: "json",
          async: n.getAsync
        });
      },
      postMissing: function(e, t, n, r, i) {
        var a = {};
        a[n] = r;
        var o = [];
        if ("fallback" === I.sendMissingTo && I.fallbackLng !== !1) o.push({
          lng: I.fallbackLng,
          url: h(I.resPostPath, {
            lng: I.fallbackLng,
            ns: t
          })
        }); else if ("current" === I.sendMissingTo || "fallback" === I.sendMissingTo && I.fallbackLng === !1) o.push({
          lng: e,
          url: h(I.resPostPath, {
            lng: e,
            ns: t
          })
        }); else if ("all" === I.sendMissingTo) for (var s = 0, u = i.length; u > s; s++) o.push({
          lng: i[s],
          url: h(I.resPostPath, {
            lng: i[s],
            ns: t
          })
        });
        for (var l = 0, c = o.length; c > l; l++) {
          var f = o[l];
          M.ajax({
            url: f.url,
            type: I.sendType,
            data: a,
            success: function() {
              M.log("posted missing key '" + n + "' to: " + f.url);
              for (var e = n.split("."), i = 0, a = O[f.lng][t]; e[i]; ) a = a[e[i]] = i === e.length - 1 ? r : a[e[i]] || {}, 
              i++;
            },
            error: function() {
              M.log("failed posting missing key '" + n + "' to: " + f.url);
            },
            dataType: "json",
            async: I.postAsync
          });
        }
      }
    }, D = {
      rules: {
        ach: {
          name: "Acholi",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        af: {
          name: "Afrikaans",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ak: {
          name: "Akan",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        am: {
          name: "Amharic",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        an: {
          name: "Aragonese",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ar: {
          name: "Arabic",
          numbers: [ 0, 1, 2, 3, 11, 100 ],
          plurals: function(e) {
            return Number(0 === e ? 0 : 1 == e ? 1 : 2 == e ? 2 : e % 100 >= 3 && 10 >= e % 100 ? 3 : e % 100 >= 11 ? 4 : 5);
          }
        },
        arn: {
          name: "Mapudungun",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        ast: {
          name: "Asturian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ay: {
          name: "Aymará",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        az: {
          name: "Azerbaijani",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        be: {
          name: "Belarusian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        bg: {
          name: "Bulgarian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        bn: {
          name: "Bengali",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        bo: {
          name: "Tibetan",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        br: {
          name: "Breton",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        bs: {
          name: "Bosnian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        ca: {
          name: "Catalan",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        cgg: {
          name: "Chiga",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        cs: {
          name: "Czech",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : e >= 2 && 4 >= e ? 1 : 2);
          }
        },
        csb: {
          name: "Kashubian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        cy: {
          name: "Welsh",
          numbers: [ 1, 2, 3, 8 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3);
          }
        },
        da: {
          name: "Danish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        de: {
          name: "German",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        dz: {
          name: "Dzongkha",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        el: {
          name: "Greek",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        en: {
          name: "English",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        eo: {
          name: "Esperanto",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        es: {
          name: "Spanish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        es_ar: {
          name: "Argentinean Spanish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        et: {
          name: "Estonian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        eu: {
          name: "Basque",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        fa: {
          name: "Persian",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        fi: {
          name: "Finnish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        fil: {
          name: "Filipino",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        fo: {
          name: "Faroese",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        fr: {
          name: "French",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        fur: {
          name: "Friulian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        fy: {
          name: "Frisian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ga: {
          name: "Irish",
          numbers: [ 1, 2, 3, 7, 11 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : 2 == e ? 1 : 7 > e ? 2 : 11 > e ? 3 : 4);
          }
        },
        gd: {
          name: "Scottish Gaelic",
          numbers: [ 1, 2, 3, 20 ],
          plurals: function(e) {
            return Number(1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && 20 > e ? 2 : 3);
          }
        },
        gl: {
          name: "Galician",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        gu: {
          name: "Gujarati",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        gun: {
          name: "Gun",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        ha: {
          name: "Hausa",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        he: {
          name: "Hebrew",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        hi: {
          name: "Hindi",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        hr: {
          name: "Croatian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        hu: {
          name: "Hungarian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        hy: {
          name: "Armenian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ia: {
          name: "Interlingua",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        id: {
          name: "Indonesian",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        is: {
          name: "Icelandic",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e % 10 || 11 == e % 100);
          }
        },
        it: {
          name: "Italian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ja: {
          name: "Japanese",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        jbo: {
          name: "Lojban",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        jv: {
          name: "Javanese",
          numbers: [ 0, 1 ],
          plurals: function(e) {
            return Number(0 !== e);
          }
        },
        ka: {
          name: "Georgian",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        kk: {
          name: "Kazakh",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        km: {
          name: "Khmer",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        kn: {
          name: "Kannada",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ko: {
          name: "Korean",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        ku: {
          name: "Kurdish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        kw: {
          name: "Cornish",
          numbers: [ 1, 2, 3, 4 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3);
          }
        },
        ky: {
          name: "Kyrgyz",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        lb: {
          name: "Letzeburgesch",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ln: {
          name: "Lingala",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        lo: {
          name: "Lao",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        lt: {
          name: "Lithuanian",
          numbers: [ 1, 2, 10 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        lv: {
          name: "Latvian",
          numbers: [ 0, 1, 2 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : 0 !== e ? 1 : 2);
          }
        },
        mai: {
          name: "Maithili",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        mfe: {
          name: "Mauritian Creole",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        mg: {
          name: "Malagasy",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        mi: {
          name: "Maori",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        mk: {
          name: "Macedonian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 == e || 1 == e % 10 ? 0 : 1);
          }
        },
        ml: {
          name: "Malayalam",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        mn: {
          name: "Mongolian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        mnk: {
          name: "Mandinka",
          numbers: [ 0, 1, 2 ],
          plurals: function(e) {
            return Number(1 == e ? 1 : 2);
          }
        },
        mr: {
          name: "Marathi",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ms: {
          name: "Malay",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        mt: {
          name: "Maltese",
          numbers: [ 1, 2, 11, 20 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : 0 === e || e % 100 > 1 && 11 > e % 100 ? 1 : e % 100 > 10 && 20 > e % 100 ? 2 : 3);
          }
        },
        nah: {
          name: "Nahuatl",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        nap: {
          name: "Neapolitan",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        nb: {
          name: "Norwegian Bokmal",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ne: {
          name: "Nepali",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        nl: {
          name: "Dutch",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        nn: {
          name: "Norwegian Nynorsk",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        no: {
          name: "Norwegian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        nso: {
          name: "Northern Sotho",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        oc: {
          name: "Occitan",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        or: {
          name: "Oriya",
          numbers: [ 2, 1 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        pa: {
          name: "Punjabi",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        pap: {
          name: "Papiamento",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        pl: {
          name: "Polish",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        pms: {
          name: "Piemontese",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ps: {
          name: "Pashto",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        pt: {
          name: "Portuguese",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        pt_br: {
          name: "Brazilian Portuguese",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        rm: {
          name: "Romansh",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ro: {
          name: "Romanian",
          numbers: [ 1, 2, 20 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : 0 === e || e % 100 > 0 && 20 > e % 100 ? 1 : 2);
          }
        },
        ru: {
          name: "Russian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        sah: {
          name: "Yakut",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        sco: {
          name: "Scots",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        se: {
          name: "Northern Sami",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        si: {
          name: "Sinhala",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        sk: {
          name: "Slovak",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e ? 0 : e >= 2 && 4 >= e ? 1 : 2);
          }
        },
        sl: {
          name: "Slovenian",
          numbers: [ 5, 1, 2, 3 ],
          plurals: function(e) {
            return Number(1 == e % 100 ? 1 : 2 == e % 100 ? 2 : 3 == e % 100 || 4 == e % 100 ? 3 : 0);
          }
        },
        so: {
          name: "Somali",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        son: {
          name: "Songhay",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        sq: {
          name: "Albanian",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        sr: {
          name: "Serbian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        su: {
          name: "Sundanese",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        sv: {
          name: "Swedish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        sw: {
          name: "Swahili",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        ta: {
          name: "Tamil",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        te: {
          name: "Telugu",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        tg: {
          name: "Tajik",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        th: {
          name: "Thai",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        ti: {
          name: "Tigrinya",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        tk: {
          name: "Turkmen",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        tr: {
          name: "Turkish",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        tt: {
          name: "Tatar",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        ug: {
          name: "Uyghur",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        uk: {
          name: "Ukrainian",
          numbers: [ 1, 2, 5 ],
          plurals: function(e) {
            return Number(1 == e % 10 && 11 != e % 100 ? 0 : e % 10 >= 2 && 4 >= e % 10 && (10 > e % 100 || e % 100 >= 20) ? 1 : 2);
          }
        },
        ur: {
          name: "Urdu",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        uz: {
          name: "Uzbek",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        vi: {
          name: "Vietnamese",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        wa: {
          name: "Walloon",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(e > 1);
          }
        },
        wo: {
          name: "Wolof",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        },
        yo: {
          name: "Yoruba",
          numbers: [ 1, 2 ],
          plurals: function(e) {
            return Number(1 != e);
          }
        },
        zh: {
          name: "Chinese",
          numbers: [ 1 ],
          plurals: function() {
            return 0;
          }
        }
      },
      addRule: function(e, t) {
        D.rules[e] = t;
      },
      setCurrentLng: function(e) {
        if (!D.currentRule || D.currentRule.lng !== e) {
          var t = e.split("-");
          D.currentRule = {
            lng: e,
            rule: D.rules[t[0]]
          };
        }
      },
      get: function(e, t) {
        function n(t, n) {
          var r;
          if (r = D.currentRule && D.currentRule.lng === e ? D.currentRule.rule : D.rules[t]) {
            var i = r.plurals(n), a = r.numbers[i];
            return 2 === r.numbers.length && 1 === r.numbers[0] && (2 === a ? a = -1 : 1 === a && (a = 1)), 
            a;
          }
          return 1 === n ? "1" : "-1";
        }
        var r = e.split("-");
        return n(r[0], t);
      }
    }, F = {}, U = function(e, t) {
      F[e] = t;
    }, $ = function() {
      function e(e) {
        return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
      }
      function t(e, t) {
        for (var n = []; t > 0; n[--t] = e) ;
        return n.join("");
      }
      var n = function() {
        return n.cache.hasOwnProperty(arguments[0]) || (n.cache[arguments[0]] = n.parse(arguments[0])), 
        n.format.call(null, n.cache[arguments[0]], arguments);
      };
      return n.format = function(n, r) {
        var i, a, o, s, u, l, c, f = 1, p = n.length, d = "", h = [];
        for (a = 0; p > a; a++) if (d = e(n[a]), "string" === d) h.push(n[a]); else if ("array" === d) {
          if (s = n[a], s[2]) for (i = r[f], o = 0; o < s[2].length; o++) {
            if (!i.hasOwnProperty(s[2][o])) throw $('[sprintf] property "%s" does not exist', s[2][o]);
            i = i[s[2][o]];
          } else i = s[1] ? r[s[1]] : r[f++];
          if (/[^s]/.test(s[8]) && "number" != e(i)) throw $("[sprintf] expecting number but found %s", e(i));
          switch (s[8]) {
           case "b":
            i = i.toString(2);
            break;

           case "c":
            i = String.fromCharCode(i);
            break;

           case "d":
            i = parseInt(i, 10);
            break;

           case "e":
            i = s[7] ? i.toExponential(s[7]) : i.toExponential();
            break;

           case "f":
            i = s[7] ? parseFloat(i).toFixed(s[7]) : parseFloat(i);
            break;

           case "o":
            i = i.toString(8);
            break;

           case "s":
            i = (i = String(i)) && s[7] ? i.substring(0, s[7]) : i;
            break;

           case "u":
            i = Math.abs(i);
            break;

           case "x":
            i = i.toString(16);
            break;

           case "X":
            i = i.toString(16).toUpperCase();
          }
          i = /[def]/.test(s[8]) && s[3] && i >= 0 ? "+" + i : i, l = s[4] ? "0" == s[4] ? "0" : s[4].charAt(1) : " ", 
          c = s[6] - String(i).length, u = s[6] ? t(l, c) : "", h.push(s[5] ? i + u : u + i);
        }
        return h.join("");
      }, n.cache = {}, n.parse = function(e) {
        for (var t = e, n = [], r = [], i = 0; t; ) {
          if (null !== (n = /^[^\x25]+/.exec(t))) r.push(n[0]); else if (null !== (n = /^\x25{2}/.exec(t))) r.push("%"); else {
            if (null === (n = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t))) throw "[sprintf] huh?";
            if (n[2]) {
              i |= 1;
              var a = [], o = n[2], s = [];
              if (null === (s = /^([a-z_][a-z_\d]*)/i.exec(o))) throw "[sprintf] huh?";
              for (a.push(s[1]); "" !== (o = o.substring(s[0].length)); ) if (null !== (s = /^\.([a-z_][a-z_\d]*)/i.exec(o))) a.push(s[1]); else {
                if (null === (s = /^\[(\d+)\]/.exec(o))) throw "[sprintf] huh?";
                a.push(s[1]);
              }
              n[2] = a;
            } else i |= 2;
            if (3 === i) throw "[sprintf] mixing positional and named placeholders is not (yet) supported";
            r.push(n);
          }
          t = t.substring(n[0].length);
        }
        return r;
      }, n;
    }(), V = function(e, t) {
      return t.unshift(e), $.apply(null, t);
    };
    return U("sprintf", function(e, t, n) {
      return n.sprintf ? "[object Array]" === Object.prototype.toString.apply(n.sprintf) ? V(e, n.sprintf) : "object" == typeof n.sprintf ? $(e, n.sprintf) : e : e;
    }), S.init = i, S.setLng = f, S.preload = a, S.addResourceBundle = o, S.removeResourceBundle = s, 
    S.loadNamespace = l, S.loadNamespaces = c, S.setDefaultNamespace = u, S.t = y, S.translate = y, 
    S.exists = b, S.detectLanguage = M.detectLanguage, S.pluralExtensions = D, S.sync = z, 
    S.functions = M, S.lng = p, S.addPostProcessor = U, S.options = I, S;
  }), n("i18n", [ "i18next" ], function(e) {
    var t, n = {}, r = e.functions, i = e.options;
    return t = {
      version: "0.4.0",
      pluginBuilder: "./vendor/require-i18next-builder",
      resourceExists: function(e, t, r) {
        return n[e] && n[e][t] && n[e][t][r];
      },
      addResource: function(e, t, r, i) {
        n[e] = n[e] || {}, n[e][t] = n[e][t] || {}, n[e][t][r] = i;
      },
      getResources: function(e, t) {
        var i = {};
        return r.each(n, function(a) {
          n[a][e] && n[a][e][t] && r.extend(i, n[a][e][t]);
        }), i;
      },
      parseName: function(e) {
        var t = e.split(":");
        return {
          module: t[0],
          namespaces: t[1] ? t[1].split(",") : []
        };
      },
      load: function(n, a, o, s) {
        var u = t.parseName(n), l = r.extend({}, s.i18next), c = u.namespaces, f = u.module, p = l.supportedLngs;
        p && p[f] && (p = p[f]), "string" == typeof i.ns ? (c.unshift(l.ns || i.ns), l.ns = {
          defaultNs: c[0],
          namespaces: c
        }) : (l.ns = i.ns, r.each(c, function(e, t) {
          -1 == l.ns.namespaces.indexOf(t) && l.ns.namespaces.push(t);
        })), l.customLoad = function(e, n, i, a) {
          if (t.resourceExists(f, e, n)) return a(null, t.getResources(e, n)), void 0;
          if (p && (!p[e] || -1 == p[e].indexOf(n))) return r.log("no locale support found for " + e + " with namespace " + n), 
          a(null, {}), void 0;
          var o = r.applyReplacement(i.resGetPath, {
            lng: e,
            ns: n
          });
          r.ajax({
            url: o,
            dataType: "json",
            async: i.async,
            success: function(i) {
              t.addResource(f, e, n, i), r.log("loaded: " + o), a(null, t.getResources(e, n));
            },
            error: function(e, t, n) {
              r.log("failed loading: " + o), a(n, {});
            }
          });
        }, delete l.supportedLngs, e.init(l, function() {
          o(e);
        });
      }
    };
  }), n("i18next-init", [ "i18next" ], function(e) {
    return e.init({
      getAsync: !1,
      ns: "gameads",
      resGetPath: "locale/__lng__/__ns__.json",
      fallbackLng: "en",
      resStore: {
        en: {
          gameads: {
            locale: "en",
            "Watch now!": "Watch now!",
            "No campaigns available, try again later": "No campaigns available, try again later",
            "Watch a game trailer, get": "Watch a game trailer, get",
            Buffering: "Buffering",
            Loading: "Loading",
            "Unknown error": "Unknown error",
            "Video playback error": "Video playback error",
            Ratings: "Ratings",
            "Download For Free": "Download For Free",
            "Downloading won't stop your gaming": "Downloading won't stop your gaming"
          }
        },
        es: {
          gameads: {
            locale: "es",
            "Watch now!": "¡Ver ahora!",
            "No campaigns available, try again later": "No hay campañas disponibles, inténtalo más tarde.",
            "Watch a game trailer, get": "Ve un tráiler de un videojuego y obtén",
            Buffering: "Buffering",
            Loading: "Cargando",
            "Unknown error": "Error desconocido",
            "Video playback error": "Error de reproducción de video",
            Ratings: "Valoraciones",
            "Download For Free": "Descarga Gratis",
            "Downloading won't stop your gaming": "Descargar no interrumpirá tu sesión de juego."
          }
        },
        fi: {
          gameads: {
            locale: "fi",
            "Watch now!": "Katso nyt!",
            "No campaigns available, try again later": "Ei mainoksia, yritä myöhemmin uudelleen",
            "Watch a game trailer, get": "Katso pelin video, niin saat",
            Buffering: "Puskuroidaan",
            Loading: "Ladataan",
            "Unknown error": "Tuntematon virhe",
            "Video playback error": "Virhe videon toistossa",
            Ratings: "Arvostelua",
            "Download For Free": "Lataa ilmaiseksi",
            "Downloading won't stop your gaming": "Lataaminen ei keskeytä peliäsi"
          }
        },
        fr: {
          gameads: {
            locale: "fr",
            "Watch now!": "Regarder maintenant!",
            "No campaigns available, try again later": "Pas de campagnes disponibles, veuillez réessayer plus tard",
            "Watch a game trailer, get": "Regarder la bande-annonce du jeu",
            Buffering: "Mise en mémoire tampon",
            Loading: "Chargement",
            "Unknown error": "Erreur inconnue",
            "Video playback error": "Erreur lors du chargement de la vidéo",
            Ratings: "Evaluations",
            "Download For Free": "Téléchargement gratuit",
            "Downloading won't stop your gaming": "Continuez a jouer pendant le téléchargement"
          }
        },
        it: {
          gameads: {
            locale: "it",
            "Watch now!": "Guarda ora!",
            "No campaigns available, try again later": "Nessuna campagna disponibile, prova più tardi",
            "Watch a game trailer, get": "Guarda il trailer di un gioco, guarda",
            Buffering: "Buffering",
            Loading: "Caricamento",
            "Unknown error": "Errore sconosciuto",
            "Video playback error": "Errore di riproduzione del video",
            Ratings: "Valutazioni",
            "Download For Free": "Scarica gratis",
            "Downloading won't stop your gaming": "Il download non interromperà il gioco"
          }
        },
        ja: {
          gameads: {
            locale: "ja",
            "Watch now!": "今すぐ見る！",
            "No campaigns available, try again later": "広告がありません、また後でお願いします",
            "Watch a game trailer, get": "ビデオを見てゲームをダウンロード",
            Buffering: "バッファリング中",
            Loading: "ローディング中",
            "Unknown error": "未知のエラー",
            "Video playback error": "ビデオ再生エラー",
            Ratings: "レーティング",
            "Download For Free": '無料<wbr><span style="white-space:nowrap">ダウンロード</span>',
            "Downloading won't stop your gaming": 'このダウンロードで<wbr><span style="white-space:nowrap">ゲームは中断されません</span>'
          }
        },
        ko: {
          gameads: {
            locale: "ko",
            "Watch now!": "지금 보기",
            "No campaigns available, try again later": "지금 광고가 없습니다. 다음에 시도하세요",
            "Watch a game trailer, get": "게임 트레일러를 보고 다음 보상을 받으세요.",
            Buffering: "버퍼링",
            Loading: "로딩 중",
            "Unknown error": "알 수 없는 오류",
            "Video playback error": "동영상 재생 오류",
            Ratings: "평가",
            "Download For Free": "무료 다운로드",
            "Downloading won't stop your gaming": "다운로드 중에도 계속 게임할 수 있습니다"
          }
        },
        ru: {
          gameads: {
            locale: "ru",
            "Watch now!": "Посмотреть сеичас!",
            "No campaigns available, try again later": "Нет рекламы, пожалуйста, повторите попытку позже",
            "Watch a game trailer, get": "Посмотрите трайлер игры и получите",
            Buffering: "Буферизация",
            Loading: "загрузка",
            "Unknown error": "Неизвестная ошибка",
            "Video playback error": "Ошибка воспроизведение видео",
            Ratings: "Рейтинги",
            "Download For Free": "Скачать бесплатно",
            "Downloading won't stop your gaming": "загрузка не остановит вашу игру"
          }
        },
        "zh-CN": {
          gameads: {
            locale: "zh-CN",
            "Watch now!": "开始播放",
            "No campaigns available, try again later": "没有可播视频，请稍后再试",
            "Watch a game trailer, get": "观看视频，获得",
            Buffering: "正在缓冲",
            Loading: "加载中",
            "Unknown error": "未知错误",
            "Video playback error": "视频播放出错",
            Ratings: "评分",
            "Download For Free": "免费下载",
            "Downloading won't stop your gaming": "点击下载不会中断当前游戏"
          }
        },
        "zh-TW": {
          gameads: {
            locale: "zh-TW",
            "Watch now!": "馬上觀看！",
            "No campaigns available, try again later": "沒有可用視頻，請稍後再試",
            "Watch a game trailer, get": "看視頻，獲取",
            Buffering: "正在緩衝",
            Loading: "讀取中",
            "Unknown error": "未知錯誤",
            "Video playback error": "視頻播放出錯",
            Ratings: "評分",
            "Download For Free": "免費下載",
            "Downloading won't stop your gaming": "下載不會中斷當前遊戲"
          }
        }
      }
    }), e;
  }), n("i18n!", [ "i18next-init" ], function(e) {
    return e;
  }), n("player", [ "exports", "module" ], function(e, t) {
    var n = [ "cacheStart", "cacheProgress", "cacheStalled", "cacheFinish", "cacheError" ].reduce(function(e, t) {
      return e[t] = t, e;
    }, {}), r = function(e, t, r) {
      var i = [], a = new XMLHttpRequest(), o = 0, s = function(t, n) {
        i = i.concat({
          event: t,
          videoUrl: e,
          value: n,
          model: window.navigator.userAgent,
          ts: Date.now()
        }), r(i);
      }, u = setInterval(function() {
        i.length > 0 && Date.now() - i[i.length - 1].ts > t && (s(n.cacheStalled, "Cache didn't progress for " + t + " period"), 
        clearInterval(u));
      }, 1e3), l = function() {
        if (200 === a.status) {
          var e = window.URL || window.webkitURL, t = e.createObjectURL(a.response);
          t ? s(n.cacheFinish, t) : s(n.cacheError, "Cannot create blob. Url returned null");
        } else s(n.cacheError, "Download failed with status code: " + a.status);
        clearInterval(u);
      }, c = function(e) {
        if (e.lengthComputable) {
          var t = Math.round(100 * (e.loaded / e.total));
          t != o && (o = t, s(n.cacheProgress, o));
        }
      };
      a.open("GET", e, !0), a.responseType = "blob", a.addEventListener("load", l), a.addEventListener("progress", c), 
      a.send(), s(n.cacheStart);
    }, i = function(e, t) {
      return e >= 7 || t >= 19;
    };
    t.exports = {
      cacheEvent: n,
      cacheVideo: r,
      isCacheSupported: i
    };
  }), n("brandAds", [ "exports", "module", "zepto", "player" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r), s = window.navigator.userAgent + Math.random(), u = "//vaster.unityads.unity3d.com/log", l = function(e) {
      return 1 == Math.floor(Math.random() * e);
    }, c = function(e, t) {
      a["default"].ajax({
        url: u,
        type: "POST",
        data: JSON.stringify({
          event: e,
          data: t,
          sessionId: s,
          ts: Date.now()
        }),
        contentType: "application/json"
      });
    }, f = function(e) {
      c("cacheStart", e);
      var t = function(e) {
        e.filter(function(e) {
          return e.event == o["default"].cacheEvent.cacheFinish || e.event == o["default"].cacheEvent.cacheStalled || e.event == o["default"].cacheEvent.cacheError;
        }).map(function() {
          return c("cacheEnd", e);
        });
      }, n = 6e4;
      o["default"].cacheVideo(e, n, t);
    };
    t.exports = {
      init: function(e, t) {
        if (!(e && e.get && t && t.length)) return !1;
        var n = e.get("iOSVersion"), r = e.get("softwareVersion"), i = e.get("sdkVersion"), a = "ipad" == e.get("deviceType"), s = t.every(function(e) {
          return e.get && e.get("allowCache");
        }), u = l(1e5);
        return u ? o["default"].isCacheSupported(n, r) ? 1404 > i ? !1 : !a || 9 > n ? !1 : s ? (f("//static.everyplay.com/impact/11017/blue_test_trailer.mp4"), 
        !0) : !1 : !1 : !1;
      }
    };
  }), n("controllers/native", [ "exports", "module", "zepto", "underscore", "backbone", "collections/campaigns", "collections/zones", "collections/items", "models/campaign", "models/zone", "models/item", "models/properties", "i18n!", "brandAds" ], function(e, t, n, r, i, a, o, s, u, l, c, f, p, d) {
    function h(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var m = h(n), g = h(r), v = h(i), b = h(a), y = h(o), w = h(s);
    h(u), h(l);
    var x = h(c), _ = h(f), k = h(p), N = h(d);
    t.exports = function() {
      this.campaigns = null, this.zones = null, this.item = null, this.items = null, this.properties = null, 
      this.init = function(e) {
        this.campaigns = new b["default"](e.campaignData.data.campaigns, {
          parse: !0
        }), this.campaigns.forEach(function(e) {
          e.set("completed", !1);
        }), "zones" in e.campaignData.data && e.campaignData.data.zones && (this.zones = new y["default"](e.campaignData.data.zones)), 
        "item" in e.campaignData.data && e.campaignData.data.item && (this.item = new x["default"](e.campaignData.data.item)), 
        "items" in e.campaignData.data && e.campaignData.data.items && (this.items = new w["default"](e.campaignData.data.items)), 
        delete e.campaignData.data.campaigns, delete e.campaignData.data.zones, delete e.campaignData.data.item, 
        delete e.campaignData.data.items;
        var t = e.campaignData.data;
        delete e.campaignData, this.properties = new _["default"](g["default"].extend(e, t), {
          parse: !0
        });
        var n = new RegExp([ "cn", "it", "jp", "ru", "tw", "fr", "kr", "fi" ].join("|"), "i");
        this.properties.get("country").match(n) || k["default"].setLng("en"), this._send = "android" === this.properties.get("platform") && "applifierimpactnative" in window && window.applifierimpactnative.handleWebEvent ? this._sendAndroid : "android" === this.properties.get("platform") && "unityadsnativebridge" in window && window.unityadsnativebridge.handleWebEvent ? this._sendAndroidNew : "ios" === this.properties.get("platform") && this.properties.get("sdkVersion") >= 1300 ? this.properties.get("sdkVersion") < 1405 ? this._sendIosNew : this._sendIosNewHttps : this._sendIos;
        try {
          N["default"].init(this.properties, this.campaigns);
        } catch (r) {
          console.error("BrandAd init error", r);
        }
        return this.campaigns.length ? (v["default"].trigger("init", e), this._send("initComplete"), 
        "true") : "false";
      }, this.setView = function(e, t) {
        return v["default"].trigger("setView", e, t), "true";
      }, this.handleNativeEvent = function(e, t) {
        return v["default"].trigger(e, t), "true";
      }, this.playVideo = function(e, t) {
        v["default"].trigger("playVideo", e, t), this._send("playVideo", {
          campaignId: e.get("id"),
          rewatch: t || !1
        });
      }, this.appStore = function(e, t, n) {
        var r = this.properties.get("deviceType").match(/android/i), i = "ipad" === this.properties.get("deviceType"), a = this.properties.get("iOSVersion") >= 8;
        this.properties.get("sdkVersion") < 1404 && !r && a && !i && (n = !0), this._send("appStore", {
          clickUrl: e,
          iTunesId: t,
          bypassAppSheet: n || !1
        });
      }, this.navigateTo = function(e) {
        this._send("navigateTo", {
          clickUrl: e
        });
      }, this.close = function(e) {
        this._send("close", {
          view: e
        });
      }, this._sendAndroid = function(e, t) {
        console.log(window.applifierimpactnative.handleWebEvent(e, JSON.stringify({
          data: t || {}
        })));
      }, this._sendAndroidNew = function(e, t) {
        console.log(window.unityadsnativebridge.handleWebEvent(e, JSON.stringify({
          data: t || {}
        })));
      }, this._sendIosNew = function(e, t) {
        m["default"].post("http://nativebridge.unityads.unity3d.com/", JSON.stringify({
          type: e,
          data: t || {}
        }), function(e) {
          console.log(e);
        });
      }, this._sendIosNewHttps = function(e, t) {
        m["default"].post("https://nativebridge.unityads.unity3d.com/", JSON.stringify({
          type: e,
          data: t || {}
        }), function(e) {
          console.log(e);
        });
      }, this._sendIos = function(e, t) {
        m["default"].post("http://client.impact.applifier.com/", JSON.stringify({
          type: e,
          data: t || {}
        }), function(e) {
          console.log(e);
        });
      };
    };
  }), n("controllers/events", [ "exports", "module", "backbone", "zepto", "event_tracking" ], function(e, t, n, r, i) {
    function a(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var o = a(n), s = a(r), u = a(i);
    t.exports = function(e) {
      var t = "https://log.applifier.com/impact";
      o["default"].on("open", function(n) {
        var r = {
          applicationId: e.properties.get("gameId"),
          tid: e.properties.get("gamerId"),
          type: "open",
          view: "none",
          ab_group: e.properties.get("ab_group"),
          campaigns: n.pluck("id")
        }, i = e.properties.get("zone");
        i && (r.zone = i), console.log("Sending open event for parameters: " + r.applicationId + ", " + r.tid + ", " + r.campaigns.join(", ") + (r.zone ? ", " + r.zone : "")), 
        s["default"].post(t, r);
      }), o["default"].on("scroll", function(n) {
        try {
          var r = {
            applicationId: e.properties.get("gameId"),
            tid: e.properties.get("gamerId"),
            type: "scroll",
            view: "offer",
            ab_group: e.properties.get("ab_group"),
            campaign: n.get("id")
          }, i = e.properties.get("zone");
          i && (r.zone = i), console.log("Sending scroll event for parameters: " + r.applicationId + ", " + r.tid + ", " + r.campaign + (r.zone ? ", " + r.zone : "")), 
          s["default"].post(t, r);
        } catch (a) {}
      }), o["default"].on("click", function(n) {
        var r = {
          applicationId: e.properties.get("gameId"),
          tid: e.properties.get("gamerId"),
          type: "click",
          view: "mobile",
          ab_group: e.properties.get("ab_group"),
          campaign: n.get("id")
        }, i = e.properties.get("zone");
        i && (r.zone = i), console.log("Sending click event for parameters: " + r.applicationId + ", " + r.tid + ", " + r.campaign + (r.zone ? ", " + r.zone : "")), 
        s["default"].post(t, r);
      }), o["default"].on("close", function(n) {
        var r = {
          applicationId: e.properties.get("gameId"),
          tid: e.properties.get("gamerId"),
          type: "close",
          ab_group: e.properties.get("ab_group"),
          view: n
        }, i = e.properties.get("zone");
        i && (r.zone = i), console.log("Sending close event for parameters: " + r.applicationId + ", " + r.tid + ", " + r.view + (r.zone ? ", " + r.zone : "")), 
        s["default"].post(t, r);
      }), o["default"].on("googleAnalyticsEvent", function(e) {
        u["default"].parseAndTrackEvents(e.events);
      }), o["default"].on("reset:impact", function() {
        o["default"].off("googleAnalyticsEvent"), o["default"].off("close"), o["default"].off("click"), 
        o["default"].off("open"), o["default"].off("scroll");
      });
    };
  }), n("views/page", [ "exports", "module", "backbone" ], function(e, t, n) {
    function r(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var i = r(n);
    t.exports = i["default"].View.extend({
      className: "page-container",
      close: function(e) {
        e && e.preventDefault(), this.closed || (this.closed = !0, i["default"].trigger("close", this.pageName), 
        this.nativeInterface.close(this.pageName));
      },
      initialize: function() {
        this.nativeInterface = this.options.nativeInterface;
      },
      templateData: function() {
        return this.collection ? this.collection.toJSON() : this.model ? this.model.toJSON() : {};
      },
      render: function() {
        return this.$el.html(this.template(this.templateData())), this.hide(), this;
      },
      show: function() {
        this.$el.css("visibility", "visible"), this.closed = !1;
      },
      visible: function() {
        return "visible" === this.$el.css("visibility");
      },
      hide: function() {
        this.$el.css("visibility", "hidden");
      }
    });
  }), n("text", [ "module" ], function(e) {
    var n, r, i, a, o = [ "Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0" ], s = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, u = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im, l = "undefined" != typeof location && location.href, c = l && location.protocol && location.protocol.replace(/\:/, ""), f = l && location.hostname, p = l && (location.port || void 0), d = {}, h = e.config && e.config() || {};
    return n = {
      version: "2.0.7",
      strip: function(e) {
        if (e) {
          e = e.replace(s, "");
          var t = e.match(u);
          t && (e = t[1]);
        } else e = "";
        return e;
      },
      jsEscape: function(e) {
        return e.replace(/(['\\])/g, "\\$1").replace(/[\f]/g, "\\f").replace(/[\b]/g, "\\b").replace(/[\n]/g, "\\n").replace(/[\t]/g, "\\t").replace(/[\r]/g, "\\r").replace(/[\u2028]/g, "\\u2028").replace(/[\u2029]/g, "\\u2029");
      },
      createXhr: h.createXhr || function() {
        var e, t, n;
        if ("undefined" != typeof XMLHttpRequest) return new XMLHttpRequest();
        if ("undefined" != typeof ActiveXObject) for (t = 0; 3 > t; t += 1) {
          n = o[t];
          try {
            e = new ActiveXObject(n);
          } catch (r) {}
          if (e) {
            o = [ n ];
            break;
          }
        }
        return e;
      },
      parseName: function(e) {
        var t, n, r, i = !1, a = e.indexOf("."), o = 0 === e.indexOf("./") || 0 === e.indexOf("../");
        return -1 !== a && (!o || a > 1) ? (t = e.substring(0, a), n = e.substring(a + 1, e.length)) : t = e, 
        r = n || t, a = r.indexOf("!"), -1 !== a && (i = "strip" === r.substring(a + 1), 
        r = r.substring(0, a), n ? n = r : t = r), {
          moduleName: t,
          ext: n,
          strip: i
        };
      },
      xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
      useXhr: function(e, t, r, i) {
        var a, o, s, u = n.xdRegExp.exec(e);
        return u ? (a = u[2], o = u[3], o = o.split(":"), s = o[1], o = o[0], !(a && a !== t || o && o.toLowerCase() !== r.toLowerCase() || (s || o) && s !== i)) : !0;
      },
      finishLoad: function(e, t, r, i) {
        r = t ? n.strip(r) : r, h.isBuild && (d[e] = r), i(r);
      },
      load: function(e, t, r, i) {
        if (i.isBuild && !i.inlineText) return r(), void 0;
        h.isBuild = i.isBuild;
        var a = n.parseName(e), o = a.moduleName + (a.ext ? "." + a.ext : ""), s = t.toUrl(o), u = h.useXhr || n.useXhr;
        !l || u(s, c, f, p) ? n.get(s, function(t) {
          n.finishLoad(e, a.strip, t, r);
        }, function(e) {
          r.error && r.error(e);
        }) : t([ o ], function(e) {
          n.finishLoad(a.moduleName + "." + a.ext, a.strip, e, r);
        });
      },
      write: function(e, t, r) {
        if (d.hasOwnProperty(t)) {
          var i = n.jsEscape(d[t]);
          r.asModule(e + "!" + t, "define(function () { return '" + i + "';});\n");
        }
      },
      writeFile: function(e, t, r, i, a) {
        var o = n.parseName(t), s = o.ext ? "." + o.ext : "", u = o.moduleName + s, l = r.toUrl(o.moduleName + s) + ".js";
        n.load(u, r, function() {
          var t = function(e) {
            return i(l, e);
          };
          t.asModule = function(e, t) {
            return i.asModule(e, l, t);
          }, n.write(e, u, t, a);
        }, a);
      }
    }, "node" === h.env || !h.env && "undefined" != typeof process && process.versions && process.versions.node ? (r = t.nodeRequire("fs"), 
    n.get = function(e, t, n) {
      try {
        var i = r.readFileSync(e, "utf8");
        0 === i.indexOf("﻿") && (i = i.substring(1)), t(i);
      } catch (a) {
        n(a);
      }
    }) : "xhr" === h.env || !h.env && n.createXhr() ? n.get = function(e, t, r, i) {
      var a, o = n.createXhr();
      if (o.open("GET", e, !0), i) for (a in i) i.hasOwnProperty(a) && o.setRequestHeader(a.toLowerCase(), i[a]);
      h.onXhr && h.onXhr(o, e), o.onreadystatechange = function() {
        var n, i;
        4 === o.readyState && (n = o.status, n > 399 && 600 > n ? (i = new Error(e + " HTTP status: " + n), 
        i.xhr = o, r(i)) : t(o.responseText), h.onXhrComplete && h.onXhrComplete(o, e));
      }, o.send(null);
    } : "rhino" === h.env || !h.env && "undefined" != typeof Packages && "undefined" != typeof java ? n.get = function(e, t) {
      var n, r, i = "utf-8", a = new java.io.File(e), o = java.lang.System.getProperty("line.separator"), s = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(a), i)), u = "";
      try {
        for (n = new java.lang.StringBuffer(), r = s.readLine(), r && r.length() && 65279 === r.charAt(0) && (r = r.substring(1)), 
        null !== r && n.append(r); null !== (r = s.readLine()); ) n.append(o), n.append(r);
        u = String(n.toString());
      } finally {
        s.close();
      }
      t(u);
    } : ("xpconnect" === h.env || !h.env && "undefined" != typeof Components && Components.classes && Components.interfaces) && (i = Components.classes, 
    a = Components.interfaces, Components.utils["import"]("resource://gre/modules/FileUtils.jsm"), 
    n.get = function(e, t) {
      var n, r, o = {}, s = new FileUtils.File(e);
      try {
        n = i["@mozilla.org/network/file-input-stream;1"].createInstance(a.nsIFileInputStream), 
        n.init(s, 1, 0, !1), r = i["@mozilla.org/intl/converter-input-stream;1"].createInstance(a.nsIConverterInputStream), 
        r.init(n, "utf-8", n.available(), a.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER), 
        r.readString(n.available(), o), r.close(), n.close(), t(o.value);
      } catch (u) {
        throw new Error((s && s.path || "") + ": " + u);
      }
    }), n;
  }), n("text!templates/impact/end-screen.html", [], function() {
    return '<div class="btn-watch-again-region <%= data.endscreenAlt %>"><a class="btn-watch-again">&#8635;</a></div>\n<div class="btn-close-region <%= data.endscreenAlt %>"><a class="btn-close">&#215;</a></div>\n<div class="campaign-container <%= data.endscreenAlt %>">\n  <div class="game-background" style="background-image: url(<%= data.endScreenPortrait %><%= data.endScreen ? \'), url(\' + data.endScreen + \');\' : \');\' %>"></div>\n  <div class="end-screen-info-background">\n    <div class="end-screen-stripe"></div>\n    <div class="end-screen-info">\n      <div class="game-info">\n        <div class="game-icon" style="background-image: url(<%= data.gameIcon %>)"></div>\n        <div class="game-icon-shadow"></div>\n        <div class="name-container"><%= data.gameName %></div>\n      </div>\n      <div class="store-container">\n        <a class="store-button"></a>\n        <div class="game-store-info">\n          <span class="game-rating"><span class="game-rating-mask <%= data.ratingAlt %>">&#9733;&#9733;&#9733;&#9733;&#9733;</span>&#9733;&#9733;&#9733;&#9733;&#9733;</span>\n          <br class="game-rating-br">\n          <span class="game-rating-count">(<span class="game-rating-count-number">0</span><span class="game-rating-postfix"> <%= data.i18n.t("Ratings") %></span>)</span>\n        </div>\n      </div>\n      <div class="download-container">\n        <a class="btn-download"><span class="icon-download"><%= data.downloadIcon %></span><span class="download-text"><%= data.i18n.t("Download For Free") %></span><span class="download-text-alt">GET IT NOW!</span><span class="buy-text" style="display: none">Download Now</span></a>\n      </div>\n      <div class="store-badge-container">\n        <a class="btn-store-badge"></a>\n      </div>\n      <div class="everyplay-gameads-logo"></div>\n    </div>\n    <div class="privacy-button">&#9432;</div>\n  </div>\n</div>\n';
  }), n("views/impact/endScreen", [ "exports", "module", "backbone", "zepto", "underscore", "i18n!", "util", "event_tracking", "views/page", "text!templates/impact/end-screen.html" ], function(e, t, n, r, i, a, o, s, u, l) {
    function c(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var f = c(n), p = c(r), d = c(i), h = c(a), m = c(o), g = c(s), v = c(u), b = c(l);
    d["default"].templateSettings.variable = "data", t.exports = v["default"].extend({
      pageName: "completed",
      template: d["default"].template(b["default"]),
      events: {
        "tap .btn-close-region": "close",
        "tap .btn-close": "close",
        "tap .game-background": "download",
        "tap .btn-download": "download",
        "tap .store-button": "download",
        "tap .game-icon": "download",
        "tap .store-badge-container": "download",
        "tap .btn-watch-again-region": "watchAgain",
        "tap .btn-watch-again": "watchAgain",
        "tap .privacy-button": "privacyButton"
      },
      initialize: function() {
        this.constructor.__super__.initialize.apply(this, arguments), this.currentBackgroundOrientation = "landscape", 
        this.resizeHandler = d["default"].bind(function(e) {
          this.currentBackgroundOrientation !== e && this.switchBackground(this.currentBackgroundOrientation = e);
        }, this), f["default"].on("orientation", this.resizeHandler);
      },
      render: function() {
        var e = this.constructor.__super__.render.apply(this, arguments);
        this.model.get("gameIcon") || this.$(".game-icon").remove();
        var t = parseInt(this.model.get("gameId"));
        return (14123 === t || 131622364 === t || 26686 === t || 39650 === t) && (this.$(".download-text-alt").hide(), 
        this.$(".download-text").hide(), this.$(".buy-text").show()), this.renderRatings(this.model.get("rating"), this.model.get("ratingCount")), 
        e;
      },
      renderRatings: function(e, t) {
        e && t ? (this.$(".game-rating-mask").css("width", e + "%"), this.$(".game-rating-count-number").text(t)) : this.$(".game-store-info").css("visibility", "hidden");
      },
      templateData: function() {
        var e = this.constructor.__super__.templateData.apply(this, arguments);
        return e.i18n = h["default"], e.downloadIcon = "&#8677;", e;
      },
      handleAttribution: function(e, t, n) {
        var r = this.model.get("attributionUrlXHR");
        r ? m["default"].xhrCall(m["default"].addUrlParameters(e, {
          _: Date.now()
        }), !0, 10, 3e4, function() {
          t && t();
        }, function(e) {
          n && n(e);
        }) : m["default"].createIframe(m["default"].addUrlParameters(e, {
          _: Date.now()
        }), 10, 3e4, function() {
          t && t();
        }, function() {
          n && n();
        });
      },
      viewAttributionHandler: function() {
        var e = this.model.get("viewAttributionUrl");
        e && this.handleAttribution(e);
      },
      initAutoClose: function() {
        var e = this.nativeInterface.properties.get("autoCloseAfterSeconds");
        e && e > 0 && (console.log("Auto closing in " + e + " seconds"), this.autoCloseTimer = setTimeout(p["default"].proxy(function() {
          this.close();
        }, this), 1e3 * e));
      },
      switchBackground: function(e) {
        var t = this.$(".game-background");
        t.css("background-image", t.css("background-image").split(",").reverse().join(",")), 
        console.log("Switched end screen background to: " + e);
      },
      download: function(e) {
        e.preventDefault(), e.currentTarget && g["default"].trackEvent("endscreen", "clicked", e.currentTarget.className);
        var t = this.nativeInterface.properties.get("zone"), n = this.model.get("clickUrl");
        t && (n = m["default"].addUrlParameters(n, {
          zone: this.nativeInterface.properties.get("zone")
        }));
        var r = this.model.get("id"), i = this.model.get("customClickUrl"), a = this.model.get("ignoreImpressionTracking"), o = this.model.get("startAttributionUrl"), s = this.model.get("viewAttributionUrl"), u = this.model.get("clickAttributionUrl");
        if (g["default"].trackEvent("click", "called", r), m["default"].xhrCall(m["default"].addUrlParameters(n, {
          redirect: !1
        }), !0, 10, 3e4, function() {
          g["default"].trackEvent("click", "retried", r);
        }), !this.nativeInterface.properties.get("deviceType").match(/android/i) && this.nativeInterface.properties.get("iOSVersion") >= 8 && (n = "http://itunes.apple.com/" + this.model.get("appStoreCountry") + "/app/id" + this.model.get("iTunesId")), 
        u) this.model.get("clickAttributionUrlFollowRedirects") ? this.nativeInterface.appStore(u) : (this.handleAttribution(u), 
        this.nativeInterface.appStore(n, this.model.get("iTunesId"), this.model.get("bypassAppSheet"))); else if (o || s) this.nativeInterface.appStore(n, this.model.get("iTunesId"), this.model.get("bypassAppSheet")); else if (a && -1 !== i.indexOf("gree-apps.net")) {
          var l = i.replace("&no_redirect=true", "");
          this.nativeInterface.appStore(l);
        } else if (a && -1 !== i.indexOf("ad-x.co.uk")) {
          var c = i.replace("&redirect=off", "");
          this.nativeInterface.appStore(c);
        } else if (-1 !== i.indexOf("adtrack.king.com")) if (this.nativeInterface.properties.get("deviceType").match(/android/i)) {
          var f = i.replace("&linkId=NO_REDIRECT", "");
          this.nativeInterface.appStore(f);
        } else m["default"].createIframe(i, 10, 3e4), this.nativeInterface.appStore(n, this.model.get("iTunesId"), this.model.get("bypassAppSheet")); else if (-1 !== i.indexOf("hastrk")) {
          var p = i.replace("action=impression", "action=click").replace("action%3Dimpression", "action%3Dclick");
          m["default"].createIframe(p, 10, 3e4), this.nativeInterface.appStore(n, this.model.get("iTunesId"), this.model.get("bypassAppSheet"));
        } else !this.nativeInterface.properties.get("deviceType").match(/android/i) && this.nativeInterface.properties.get("iOSVersion") < 6 ? this.nativeInterface.appStore("http://itunes.apple.com/" + this.model.get("appStoreCountry") + "/app/id" + this.model.get("iTunesId")) : this.nativeInterface.appStore(n, this.model.get("iTunesId"), this.model.get("bypassAppSheet"));
      },
      watchAgain: function(e) {
        e.preventDefault();
        var t = this;
        this.watchAgainTriggered || (this.watchAgainTriggered = !0, g["default"].trackEvent("endscreen", "clicked", "rewatch"), 
        this.nativeInterface.playVideo(this.model, !0), setTimeout(function() {
          t.watchAgainTriggered = !1;
        }, 1e3));
      },
      privacyButton: function(e) {
        e.preventDefault(), f["default"].trigger("showPrivacy");
      },
      show: function() {
        var e = p["default"]("body");
        e.hasClass("landscape") && "landscape" !== this.currentBackgroundOrientation ? this.switchBackground(this.currentBackgroundOrientation = "landscape") : e.hasClass("portrait") && "portrait" !== this.currentBackgroundOrientation && this.switchBackground(this.currentBackgroundOrientation = "portrait"), 
        this.constructor.__super__.show.apply(this, arguments);
      },
      close: function(e) {
        this.autoCloseTimer && (clearTimeout(this.autoCloseTimer), this.autoCloseTimer = null), 
        e && !this.closed && g["default"].trackEvent("endscreen", "clicked", "close"), this.constructor.__super__.close.apply(this, arguments);
      },
      remove: function() {
        f["default"].off("orientation", this.resizeHandler), this.constructor.__super__.remove.apply(this, arguments);
      }
    });
  }), n("text!templates/impact/none.html", [], function() {
    return '<a class="btn-close">&#215;</a>';
  }), n("views/none", [ "exports", "module", "underscore", "views/page", "text!templates/impact/none.html" ], function(e, t, n, r, i) {
    function a(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var o = a(n), s = a(r), u = a(i);
    o["default"].templateSettings.variable = "data", t.exports = s["default"].extend({
      pageName: "none",
      template: o["default"].template(u["default"]),
      events: {
        "tap .btn-close": "close"
      },
      setItem: function() {}
    });
  }), n("views/popup", [ "exports", "module", "backbone", "zepto" ], function(e, t, n, r) {
    function i(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var a = i(n), o = i(r);
    t.exports = a["default"].View.extend({
      className: "popup-background",
      initialize: function() {
        this.positionProxy = o["default"].proxy(this.position, this), this.nativeInterface = this.options.nativeInterface;
      },
      templateData: function() {
        return this.collection ? this.collection.toJSON() : this.model ? this.model.toJSON() : {};
      },
      render: function() {
        return this.$el.html(this.template(this.templateData())), this.position(), this.$el.css("visibility", "hidden"), 
        this;
      },
      show: function() {
        this.$el.css("visibility", "visible"), this.position(), window.addEventListener("resize", this.positionProxy);
      },
      hide: function() {
        window.removeEventListener("resize", this.positionProxy), this.$el.css("visibility", "hidden");
      },
      position: function() {
        this.$el.css("line-height", window.innerHeight + "px");
      }
    });
  }), n("text!templates/impact/spinner.html", [], function() {
    return '<div class="spinner-container">\n  <div class="spinner-animation"></div>\n  <div class="spinner-text"></div>\n</div>';
  }), n("views/spinner", [ "exports", "module", "backbone", "zepto", "underscore", "i18n!", "event_tracking", "views/popup", "text!templates/impact/spinner.html" ], function(e, t, n, r, i, a, o, s, u) {
    function l(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var c = l(n), f = l(r), p = l(i), d = l(a), h = l(o), m = l(s), g = l(u);
    t.exports = m["default"].extend({
      template: p["default"].template(g["default"]),
      textMap: {
        loading: d["default"].t("Loading") + "...",
        buffering: d["default"].t("Buffering") + "..."
      },
      initialize: function() {
        this.constructor.__super__.initialize.apply(this, arguments), c["default"].on("showSpinner", this.show, this), 
        c["default"].on("hideSpinner", this.hide, this);
      },
      render: function() {
        var e = this.constructor.__super__.render.apply(this, arguments), t = this.nativeInterface.properties.get("customOptions");
        return t && t.bufferingBackground && this.$el.css("background", t.bufferingBackground), 
        e;
      },
      show: function(e) {
        var t = e && e.textKey && e.textKey.length && e.textKey in this.textMap ? e.textKey : "loading";
        if (this.$(".spinner-text").text(this.textMap[t]), "buffering" === t) {
          var n = this;
          this.showCloseTimer || (this.showCloseTimer = setTimeout(function() {
            h["default"].trackEvent("video", "buffering", "cancel_shown");
            var e = n.tempClose = f["default"]('<a class="btn-close" style="z-index: 1000">&#215;</a>');
            e.on("tap", function(t) {
              h["default"].trackEvent("video", "buffering", "cancel_pressed"), t.preventDefault(), 
              e.remove(), n.hide(), n.nativeInterface.close("buffering");
            }), f["default"]("body").append(e);
          }, 5e3));
        } else this.constructor.__super__.show.apply(this, arguments);
      },
      hide: function() {
        this.showCloseTimer && (this.tempClose && (this.tempClose.remove(), this.tempClose = null), 
        clearTimeout(this.showCloseTimer), this.showCloseTimer = null), this.constructor.__super__.hide.apply(this, arguments);
      }
    });
  }), n("text!templates/impact/error.html", [], function() {
    return '<div class="error-container">\n  <div class="error-text"></div>\n  <a class="btn-ok">Ok</a>\n</div>';
  }), n("views/error", [ "exports", "module", "backbone", "zepto", "underscore", "i18n!", "event_tracking", "views/popup", "text!templates/impact/error.html" ], function(e, t, n, r, i, a, o, s, u) {
    function l(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var c = l(n);
    l(r);
    var f = l(i), p = l(a), d = l(o), h = l(s), m = l(u);
    t.exports = h["default"].extend({
      template: f["default"].template(m["default"]),
      textMap: {
        unknownError: p["default"].t("Unknown error"),
        videoPlaybackError: p["default"].t("Video playback error")
      },
      events: {
        "click .btn-ok": "hide"
      },
      initialize: function() {
        this.constructor.__super__.initialize.apply(this, arguments), c["default"].on("showError", this.show, this), 
        c["default"].on("hideError", this.hide, this);
      },
      show: function(e) {
        var t = e && e.textKey && e.textKey.length && e.textKey in this.textMap ? e.textKey : "unknownError", n = this.textMap[t];
        if ("videoPlaybackError" === t) {
          var r = this.nativeInterface.properties.get("platform");
          "ios" === r && this.nativeInterface.lastCampaignId ? (this.nativeInterface.campaigns.get(this.nativeInterface.lastCampaignId).set({
            error: "videoPlaybackError"
          }), d["default"].trackEvent("error", "Video playback error", this.nativeInterface.lastCampaignId)) : "android" === r && (this.nativeInterface.lastError = "videoPlaybackError");
        }
        this.$(".error-text").text(n), this.constructor.__super__.show.apply(this, arguments);
      }
    });
  }), n("text!templates/impact/privacy.html", [], function() {
    return '<div class="privacy-container <%= data.privacy %>">\n  <div class="privacy-text">\n    This advertisement has been served by Unity Ads.\n    Unity Ads collects and uses information gathered through your use of your apps in order to create an individualized and more relevant user experience, to predict your preferences, and to show you ads that are more likely to interest you (“personalized ads”).\n    Please read our <a href="http://unity3d.com/legal/privacy-policy">Privacy Policy</a> for a full description of our data practices.\n    If you would like to opt out of Unity Ads’ collection and use of mobile app data for personalized ads options in your iOS or Android device settings menus may allow you to do so.\n    Using such device settings may opt you out of personalized ads from all third parties, not just those delivered by Unity Ads.\n  </div>\n  <div class="privacy-simple-text">\n    This advertisement has been served by Unity Ads. Please read our <a href="http://unity3d.com/legal/privacy-policy">Privacy Policy</a> for a full description of our data practices.\n  </div>\n  <div class="btn-ok">Ok</div>\n</div>';
  }), n("views/privacy", [ "exports", "module", "backbone", "zepto", "underscore", "i18n!", "util", "views/popup", "text!templates/impact/privacy.html" ], function(e, t, n, r, i, a, o, s, u) {
    function l(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    var c = l(n);
    l(r);
    var f = l(i), p = l(a);
    l(o);
    var d = l(s), h = l(u);
    f["default"].templateSettings.variable = "data", t.exports = d["default"].extend({
      template: f["default"].template(h["default"]),
      templateData: function() {
        var e = this.constructor.__super__.templateData.apply(this, arguments);
        return e.i18n = p["default"], e.privacy = "simple" === this.nativeInterface.properties.get("privacy") ? "simple" : "", 
        e;
      },
      initialize: function() {
        this.constructor.__super__.initialize.apply(this, arguments), c["default"].on("showPrivacy", this.show, this);
      },
      events: {
        "click .btn-ok": "hide",
        "click a": "openBrowser"
      },
      openBrowser: function(e) {
        e.preventDefault(), this.nativeInterface.navigateTo(e.target.href);
      }
    });
  }), n("controllers/views", [ "exports", "module", "backbone", "zepto", "underscore", "views/impact/endScreen", "views/none", "views/spinner", "views/error", "views/privacy" ], function(e, t, n, r, i, a, o, s, u, l) {
    function c(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    c(n);
    var f = c(r);
    c(i);
    var p = c(a), d = c(o), h = c(s), m = c(u), g = c(l);
    t.exports = function(e) {
      var t = f["default"]("body");
      this.views = {
        completed: null,
        none: new d["default"]({
          nativeInterface: e
        })
      }, this.popups = {
        spinner: new h["default"]({
          nativeInterface: e
        }),
        error: new m["default"]({
          nativeInterface: e
        }),
        privacy: new g["default"]({
          nativeInterface: e
        })
      }, t.append(this.views.none.render().$el), this.views.none.$el.addClass("none-screen");
      for (var n in this.popups) this.popups.hasOwnProperty(n) && t.append(this.popups[n].render().$el);
      this.get = function(e) {
        return this.views[e];
      }, this.render = function(n, r) {
        console.log("Rendering: " + n);
        var i = this.views[n];
        switch (i && (i.remove(), i = null), n) {
         case "completed":
          this.views.completed = new p["default"]({
            nativeInterface: e,
            model: r,
            properties: e.properties
          }), t.append(this.views.completed.render().$el), this.views.completed.$el.addClass("end-screen");
        }
      }, this.show = function(e) {
        console.log("Showing: " + e), this.views[e].show();
      }, this.hide = function() {
        console.log("Hiding all views");
        for (var e in this.views) if (this.views.hasOwnProperty(e)) {
          var t = this.views[e];
          t && t.hide();
        }
      };
    };
  }), n("impact", [ "exports", "backbone", "zepto", "underscore", "event_tracking", "controllers/native", "controllers/events", "controllers/views" ], function(e, t, n, r, i, a, o, s) {
    function u(e) {
      return e && e.__esModule ? e : {
        "default": e
      };
    }
    function l(e) {
      v.addClass(e);
    }
    var c = u(t), f = u(n), p = u(r), d = u(i), h = u(a), m = u(o), g = u(s), v = f["default"]("body"), b = function() {
      console.log("Resize handler called");
      var e = v.hasClass("landscape") ? "landscape" : v.hasClass("portrait") ? "portrait" : null, t = window.innerWidth / window.innerHeight >= 1 ? "landscape" : "portrait";
      e ? e !== t && (console.log("Resize handler changing orientation to " + t), v.removeClass(e), 
      v.addClass(t), c["default"].trigger("orientation", t)) : (v.addClass(t), c["default"].trigger("orientation", t));
    };
    window.addEventListener("resize", b), b(), window.addEventListener("touchmove", function(e) {
      return e.preventDefault(), !1;
    });
    var y = new h["default"](), w = null, x = null;
    c["default"].on("init", function() {
      v.removeClass("iphone ipad android unknown"), "ios" === y.properties.get("platform") ? "11386" === y.properties.get("gameId") ? l("iphone") : "ipad" !== y.properties.get("deviceType") || window.navigator.userAgent.match(/ipad/i) ? l(y.properties.get("deviceType")) : l("iphone") : l(y.properties.get("deviceType")), 
      w = new m["default"](y), x = new g["default"](y), y.properties.get("disable_ga") || (d["default"].setupGA(), 
      window.onerror = d["default"].trackError), 16 != y.properties.get("gameId") && c["default"].trigger("showSpinner", {
        textKey: "buffering"
      });
    }), c["default"].on("playVideo", function(e, t) {
      t || x.render("completed", e);
    }), c["default"].on("videoCompleted", function(e) {
      setTimeout(b, 1e3), c["default"].trigger("hideSpinner");
      var t = x.get("completed"), n = y.campaigns.get(e.campaignId);
      t ? n && 19655 === n.get("gameId") ? x.get("completed").close() : (x.hide(), x.show("completed")) : (x.render("completed", n), 
      x.hide(), x.show("completed"), t = x.get("completed")), t && (d["default"].trackEvent("endscreen", "shown", t.currentBackgroundOrientation), 
      t.initAutoClose()), y.lastError || t.viewAttributionHandler();
      var r = y.properties.get("platform");
      "ios" === r ? y.lastCampaignId = e.campaignId : "android" === r && y.lastError && "videoPlaybackError" === y.lastError && (d["default"].trackEvent("error", "Video playback error", e.campaignId), 
      n.set({
        error: "videoPlaybackError"
      }), y.lastError = null), n.set({
        completed: !0
      });
    });
    var _ = p["default"].once(function() {
      d["default"].setupSession(), d["default"].trackPageview();
    });
    c["default"].on("setView", function(e, t) {
      switch (x.hide(), e) {
       case "start":
        var n = t.action, r = (t.itemKey, t.zone);
        "open" === n && (r && y.properties.set("zone", r), _(), c["default"].trigger("open", y.campaigns));
        break;

       case "completed":
        _();
        var i = x.get("completed"), a = t.campaignId;
        if (!i && a || a && i.model.get("id") !== a) {
          var o = y.campaigns.get(a);
          o && x.render("completed", o);
        }
        x.show("completed");
        break;

       case "none":
        x.show("none");
      }
    }), window.unityadsnativebridge && window.unityadsnativebridge.handleWebEvent("loadComplete", '{"data":{}}');
    var k = null;
    window.unityads && window.unityads.cachedCalls && window.unityads.cachedCalls.length && (k = window.unityads.cachedCalls), 
    window.unityads = window.applifierimpact = y, k && (console.dir(k), k.forEach(function(e) {
      window.unityads[e.shift()].apply(window.unityads, e);
    }));
  }), t([ "impact" ]);
})();</script>
  </head>
  <body></body>
</html>
